0
Having trouble getting every other month not be vacation
var month = parseInt(readLine(), 10) //your code goes here var august = "August" if (month == august){ console.log("vacation") }
4 Answers
+ 8
var month = readLine()
+ 6
parseInt converts your input to an integer.
It gives an error if input doesn't include integers.
That's why you need to use readLine() to take a string input.
+ 2
Oh, that makes so much sense now. Thank you :)
0
So why do I need to remove the parseint?