JavaScript Math Function
A thread 🧵👇
➡️ Math.abs() : The JavaScript Math.abs() function returns the absolute value of a number.
➡️ Math.ceil() : The ceil() rounds a number UPWARDS to the nearest integer, and returns the result.
➡️ Math.round() : The Math.round() function returns the value of a number rounded to the nearest integer.
➡️ Math.floor() : The floor() rounds a number DOWNWARDS to the nearest integer, and returns the result.
➡️ Math.random() : Math.random() returns a random number between 0 (inclusive), and 1 (exclusive):
➡️ Math.pow(): The pow() returns the value of x to the power of y
➡️ Math.max() : The max() returns the number with the highest value.
➡️ Math.min() : The min() returns the number with the lowest value.
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.