12 karma · joined Jan 23, 2013 (13y ago) · 14 submissions
comment 8y ago · link · parent
i=0,a={valueOf:_=>++i}
- Omitting the variable statements in non-strict mode creates global (function scoped) variables- The comma operator evaluates its operands left to right and returns the rightmost operand, the result of which is irrelevant in this case
- The arrow function allows us to omit parenthesis around the function parameters, so any single character variable name works (in this case _)
- The arrow function syntax also allows us to omit the curly braces, and will automatically return the body of the function.
- Automatic Semicolon Injection allows us to omit the trailing ;
comment 9y ago · link · parent
comment 13y ago · link · parent
https://petitions.whitehouse.gov/petition/pardon-edward-snow...
comment 13y ago · link · parent
comment 13y ago · link · parent
"For a CSS device, these dimensions are either anchored by relating the physical units to their physical measurements, or by relating the pixel unit to the reference pixel. For print media and similar high-resolution devices, the anchor unit should be one of the standard physical units (inches, centimeters, etc). For lower-resolution devices, and devices with unusual viewing distances, it is recommended instead that the anchor unit be the pixel unit. For such devices it is recommended that the pixel unit refer to the whole number of device pixels that best approximates the reference pixel."
comment 13y ago · link · parent
[1]: http://informationarchitects.net/blog/the-web-is-all-about-t...