JavaScript Treehouse Club - MASH MASH - JavaScript MASH Choice and Random Number Functions

Chaz Hall
Chaz Hall
1,970 Points

Math. functions

The math.floor, math.ceil, and math.round- Are these normal functions built into javascript? Can I use these in any type of javascript programming II are these just functions Joy created?

1 Answer

Luke Pettway
Luke Pettway
16,543 Points

Yes the MATH object is a global built into the JavaScript language. You can use them anywhere you can use the JS language.

For reference:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math

Chaz Hall
Chaz Hall
1,970 Points

Fantastic! Thank you, Luke!