- Javascript - Check if browser back button was clicked
- javascript add custom click event
- javascript add/remove class on click
- javascript delegate custom click event
- javascript DOM loaded
- javascript find an element in array
- JavaScript loop through object (keys and values)
- javascript reverse string
- javascript string to number
- javascript number to string
- javascript array length
- javascript substring
- javascript benchmark
- javascript function default value for parameter
- javascript toolbar example
- javascript url to link
- var funcName = function() {} vs function funcName() {}
- javascript string replace
- javascript find occurrence in string
- randomize (shuffle) an array
javascript format (round) number:
var n = 12345.6789; n.toFixed(); // 12346 n.toFixed(1); // 12345.7 n.toFixed(6); // 12345.678900 (1.23e+20).toFixed(2); // 123000000000000000000.00 (1.23e-10).toFixed(2); // 0.00