`How to do something similar in JavaScript?
N
N
Nikita K2019-12-04 23:12:11
JavaScript
Nikita K, 2019-12-04 23:12:11

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

2 answer(s)
S
Shohruh Shaimardonov, 2019-12-04
@joeberetta

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

X
xmoonlight, 2019-12-05
@xmoonlight

On this - do not learn.
If you don't know JS, learn it .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question