// Practice Set · JS Math · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS Math

What does this log?

console.log(Math.max([4, 19, 7]), Math.max(...[4, 19, 7]), Math.max());
Question 2 of 5 from: JS Math Reference

What does this log?

console.log(Math.sqrt(-1), Math.acos(2), Math.log(-1));
Question 3 of 5 from: JS Math Reference

What does this log?

const toDeg = rad => rad * 180 / Math.PI;
console.log(toDeg(Math.atan2(10, 0)), toDeg(Math.atan2(0, 10)));
Question 4 of 5 from: JS Math Reference

What does this log?

console.log(Math.sign(-8), Math.sign(0), Math.abs(58 - 71));
Question 5 of 5 from: JS Math Random

Which expression gives a random whole number from 1 to 10, with both 1 and 10 possible?

Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.