+ 1

Js

var month = readLine() //your code goes here if(month ="august"){ console.log("vacation") } if(month = "september"){ console.log() } What is the error in this code irrlelivent of month its printing vacation

18th Jun 2024, 8:28 AM
Deepak Jyoti
Deepak Jyoti - avatar
1 Odpowiedź
+ 5
you can check equality with == = is for assigning
18th Jun 2024, 11:41 AM
Lisa
Lisa - avatar