Answer the question
In order to leave comments, you need to log in
`
How to do something similar in JavaScript?
I'm learning JavaScript`y, how to implement something like this? https://www.calculator.net/dice-roller.html
Answer the question
In order to leave comments, you need to log in
Just.
1. Write a function that will randomize numbers from 1 to n (in this case 6)
2. Insert a block (possibly div) with a picture (possibly using css), which will be displayed based on the result of the "randomizer"
3. Insert input[ type=number] and (or) input[type=range] with a handler that will create from 1 to m blocks from point 2. And call the function from point 1 for each block
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question