+ 1
Why else block at the end of js not working
3 Réponses
+ 2
Ron Because you assigned String value to boolean variable and in your if condition you are checking boolean value true or false
to solve this problem either you can assign boolean = false or boolean = true
Or you can change your if Condition like this:
if(check_passwrd() == "true" && check_name() == "true")
+ 2
Ron Welcome and keep learning ✅
+ 1
Thanks @AJAnant it works after that