0
Could anyone fix this?
https://sololearn.com/compiler-playground/WO7MT9RSKlBG/?ref=app
4 ответов
+ 3
In JavaScript, for conditional statement, you'll need to use "==" or "===", not "=".
Use "==" on the if/else condition instead of "=" and it should work.
Also, you can achieve this using array as well, here is an example:
https://sololearn.com/compiler-playground/W031jmw5y32a/?ref=app
+ 2
Your code needs a few adjustments: use = for assignments, === for comparisons, and consider using an array for month names. Make sure the age calculation accounts for whether the birthday has passed this year, and improve the message for invalid month inputs.
+ 1
what to fix? it asks 2 questions, and accept anything
0
thanks for helping