0
Don't know the answer of this question.
What will be alerted? var month = 04; switch (month){ case 1 : alert ("04/17"); break; case 2 : alert ("may 04"); break; case 3 ; alert ("april"); break; default: alert ("march"); }
2 odpowiedzi
+ 6
Keep in mind the 0 infront of the 4 means the number is taken in Octal (Base 8).
It just so happens that 4 in Octal is equal to 4 in decimal form.
(Also there's a semi-colon next to 'case 3' which would cause an error)
+ 1
Thank you