JavaScript Methods #
Specific methods.
Math #
For more details
.floor() #
Rounds down to whole number
console.log(Math.floor(Math.random())) // a little bit of encapsulation
.random() #
get a random number between 0 and 1:
console.log(Math.random())
Strings #
-
.trim() -
.toUpperCase()