Skip to content

Refilwe15/javascript-math-object-codetribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

PART 1 : Theory

  1. The Math object in JavaScript is a built-in object that provides mathematical constants and functions. It is not a function object and cannot be used as a constructor.

  2. No, the Math object is not a constructor. You cannot create an instance of it using new Math() — it is a static object.

  3. Math.round() Rounds a number to the nearest integer.

Math.ceil() Rounds a number up to the next largest integer (towards positive infinity).

Math.floor() Rounds a number down to the next smallest integer (towards negative infinity).

  1. Math.random() generates a pseudo-random floating-point number between 0 (inclusive) and 1 (exclusive). It does not include 1.

  2. It can return values in the range: 0 ≤ value < 1

Part 2

  1. Break task down into components

  2. Identify assumptions

  3. Look for a pattern or connection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published