DEV Community

Xavier Font
Xavier Font

Posted on

Display only one of my two sections of the code randomly on website JavaScript (but taking the same place)

0

I have two sections of my code, each generate a random equation with two numbers and an operation. Example: 28=16 ------ 2(randomized number) "" (randomized operation symbol) 8 (randomized number) = 16 (result). One section of the code is to add and subtract, the other is to multiply…

Top comments (0)