scrimba
Learn JavaScript
Blackjack
Completing our dice function
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

Completing our dice function
AboutCommentsNotes
Completing our dice function
Expand for more info
index.js
run
preview
console
// Try to modify the expression so that we get a range from 1 to 6
let randomNumber = Math.floor( Math.random() * 6 )

console.log(randomNumber)

Console
/index.html
-2:37