Method and their description

Report a typo

Match the methods and their descriptions.

Match the items from left and right columns
Math.floor()
Math.ceil()
Math.sign()
Math.abs()
Math.random()
Math.trunc()
Math.round()
Math.min()
Math.max()
Math.sqrt()
Math.pow()
returns x raised to the power of y
returns the absolute value of x
returns the maximum number of those specified in the arguments
returns x rounded down to the nearest whole number
returns the integer part of x
returns a random number from 0 (inclusive) to 1 (not inclusive)
returns x rounded to the nearest integer (if the fractional part of x is half, it will round up)
returns the smaller number of those specified in the arguments
returns x rounded up to the nearest whole number
returns the square root of x
returns 1 if x > 0, returns 0 if x === 0, and -1 if x < 0
___

Create a free account to access the full topic