math.floor js
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
console.log(Math.floor(5));
// expected output: 5
console.log(Math.floor(-5.05));
// expected output: -6
math.floor js
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
console.log(Math.floor(5));
// expected output: 5
console.log(Math.floor(-5.05));
// expected output: -6
math.floor
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
math floor javascript
// positive
console.log(Math.floor(7.25)); // 7
console.log(Math.floor(0.99)); // 0
// negative
console.log(Math.floor(-2.1)); // -3
console.log(Math.floor(-9.5)); // -10
// objects, strings, functions
console.log(Math.floor("hello")); // NaN
console.log(Math.floor({name: 'John', age: '25'})); // NaN
console.log(Math.floor(console.log)); // NaN
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us