scrimba
Frontend Career Path
Making websites interactive
Blackjack
Flooring the number with Math.floor()
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Flooring the number with Math.floor()
AboutCommentsNotes
Flooring the number with Math.floor()
Expand for more info
index.js
run
preview
console
// let randomNumber = Math.random() * 6

let flooredNumber = Math.floor(3.45632)

console.log(flooredNumber)


/*

What does Math.floor() do to positive numbers?

Your answer:

*/
Console
/index.html
-1:24