Posts by mr.aureli • 3 points
2 posts
-
-2
votes7
answers53067
viewsA: Knowing if the number is odd or even
I think there are some mistakes, see: var n = prmpt('digite o numero'); var total=n/2; if(n/2==0){ alert('par"); } Obs: notice that the equality operator is two == and not one = . in the other if…
javascriptanswered mr.aureli 3 -
0
votes5
answers7645
viewsQ: Javascript number stack pairs
I’m trying to pull the odd numbers out of a stack in an expression while javascript however I can’t, someone would have a tip to help me. Follow the code below: var j=0, msg=""; while (j<=10){…
javascriptasked mr.aureli 3