What does this program print?

from Math object
Node 24 beginner 2 min

What does this program print?

JavaScript
console.log(Math.floor(-2.3));
console.log(Math.trunc(-2.3));
console.log(Math.round(-2.5));
console.log(Object.is(Math.round(-0.5), -0));
Open in playground
Report an error