Having any kind of numerical data in JavaScript makes it almost certain that you’re going to manipulate it in some way. But past JavaScript’s arithmetical operators (covered in the operands and operators reading list), mathematical constructs can be challenging for new coders to grasp.
For that reason, rather than concentrating on syntax, this reading list starts with common mathematical functions required by coders - sorting, rounding, and generating random values before delving into detail on particular features.
Like all articles in the JavaScript reading list, this section is growing, with coming articles on trigonometry, fractals and distribution.
Reading Time: 1 hour
Prerequisites: An understanding of basic functions, operands & operators
Recipes for Randomness
Rounding Recipes
Sorting Recipes
Exponents & roots
Mathematical Constants
Math.abs, parseInt & parseFloat
Math.max & Math.min
Rendering by fdecomite, used under a Creative Commons Attribution 2.0 Generic license
Enjoy this piece? I invite you to follow me at twitter.com/dudleystorey to learn more.