floor function javascript code example
Example 1: math.floor js
console.log(Math.floor(5.95));
console.log(Math.floor(5.05));
console.log(Math.floor(5));
console.log(Math.floor(-5.05));
Example 2: math.floor
console.log(Math.floor(5.95));
console.log(Math.floor(5.05));
Example 3: javascript floor
Math.floor(1.6);
result: 1
Example 4: math.floor
console.log(Math.floor(5.05));
Example 5: math floor javascript
console.log(Math.floor(7.25));
console.log(Math.floor(0.99));
console.log(Math.floor(-2.1));
console.log(Math.floor(-9.5));
console.log(Math.floor("hello"));
console.log(Math.floor({name: 'John', age: '25'}));
console.log(Math.floor(console.log));