not equal sign not working in javascript -


this question has answer here:

i using not equal sign convert false true giving false. have tried 0 , 1 working fine. when changing value "false" "true" working problem "false" only.

<script type="text/javascript"> var test= "false"; alert(!test) </script> 

you assigning string "false", assign boolean false

var test = false; alert(!test);  

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -