+ 1
Can’t able to solve please help!!
You are planning a vacation in August. You are given a program that takes the month as input. Task Complete the code to output "vacation", if the given month is August. Don't output anything otherwise. Sample Input August Sample Output vacation var month = parseInt(readLine(), 10) //your code goes here How to proceed??
5 Antworten
+ 3
Nizwm Borgoyari ,
before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here.
thanks!
+ 3
Nizwm Borgoyari ,
you should use :
var month = readLine() // parseInt(...) is for integers only
and also:
if (month == 'August') ... // you used assignment operator, comparison is '=='
happy coding!
+ 1
I tried here is the code
var month = parseInt(readLine(),10)
//your code goes here
If (month = “August”) {
console.log(“vacation”)}
+ 1
Got it thank you so much
0
You have completed Javascript right. Can you please help me out.