jeudi 30 mars 2017

"Uncaught SyntaxError: missing ) after argument list" math.random and math.floor

With this code I'm getting a "Uncaught SyntaxError: missing ) after argument list"

    var rndm = console.log(Math.random() * 10; Math.floor(rndm))

I am trying to recreate something my friend made a while ago to do a giveaway. I need a random number between 1 and 4 but I was just testing out Math.random and Math.floor first and was planning on figuring out the rest.




Aucun commentaire:

Enregistrer un commentaire