Join the DZone community and get the full member experience.Join For Free
Have you seen our HERE Twitch channel to livestream our Developer Waypoints series?
- Keyword: js
Google Chrome: handles output and keywords differently than Firefox.
- Creating a keyword: Go to “Preferences → Basics → Search → Manage Search Engines...” and create a new entry with the following URL:
- Arithmetic operators: addition (+), subtraction (-), multiplication (*), and division (/), modulo (%).
> 77 / 11 7 > 3.16 * 5 15.8 > 10 % 7 3
- Properties and methods of the global Math object :
- Math.pow(base, exponent)
- Converting to and from hexadecimal, binary, etc.
> (255).toString(16) 'ff' > parseInt("ff", 16) 255You need to put the number in parenthesis to invoke a method on it. Otherwise the dot will be mistaken as a decimal point. Alternatively, you can type two dots or append .0 to the number.
Opinions expressed by DZone contributors are their own.