+ 5
https://code.sololearn.com/W4WtyBr4hfnz/?ref=app
Fixed your code. Please see it.
+ 3
What happened is that when you use "user === true" you are expecting a 'true' boolean. What prompt gives you is a string so no way the condition will be fulfilled.
What I have done is to use "!user" as a conditional. If cancel is clicked then null is returned. Since null is equivalent to false,!null is true. Therefore it will activate your Hi
+ 3
You're welcome Mofey