practice

1

Get square root of 15,129

console.log(Math.sqrt(15129));
2

A random number between 0 and 42

// floating-point between 0 (inclusive) and 42 (exclusive)
console.log(Math.random() * 42);
3

Round PI down to nearest integer

console.log(Math.floor(Math.PI));
4

Round PI up to nearest integer

console.log(Math.ceil(Math.PI));
5

Get max value of: 36, 74, 63, 18, 88, 92, 29, 7, 45, 51

console.log(Math.max(36, 74, 63, 18, 88, 92, 29, 7, 45, 51));
// or using an array:
const nums = [36, 74, 63, 18, 88, 92, 29, 7, 45, 51];
console.log(Math.max(...nums));