Hidden Features of JavaScript? -
what "hidden features" of javascript think every programmer should know?
after having seen excellent quality of answers following questions thought time ask javascript.
- hidden features of html
- hidden features of css
- hidden features of php
- hidden features of asp.net
- hidden features of c#
- hidden features of java
- hidden features of python
even though javascript arguably important client side language right (just ask google) it's surprising how little web developers appreciate how powerful is.
you don't need define parameters function. can use function's arguments
array-like object.
function sum() { var retval = 0; (var = 0, len = arguments.length; < len; ++i) { retval += arguments[i]; } return retval; } sum(1, 2, 3) // returns 6
Comments
Post a Comment