math.floor math.round code example Example: math.floor console.log(Math.floor(5.05)); // expected output: 5