+ 1
Why this javascript code is not working?
4 Answers
+ 2
I understand how to use. thanks guys
+ 1
Invalid statement. 2 instructions without any relation or separation.... Invalid syntax..
Edit :
Correct example :
document.write((4 > 2) , (10 < 15));
document.write("<br>", (4 > 2) && (10 < 15));
document.write("<br>", (4 > 2) || (10 < 15));
+ 1
Your code was:
document.write((4 > 2) ! (10 < 15));
In this code you have puted (!) not operator inside 2 codition. I will give you syntax error because you cant use the (!) operator with this style. I dont know what do you trying to do. But i am giving you an example of correct syntax
Example correct syntxes :
document.write((4 > 2) && !(10 < 15));
-------------------
document.write((4 > 2) || !(10 < 15));
0
what do you want to write?



