18th Sep 2020, 3:56 PM
Majdy R
Majdy R - avatar
3 ответов
+ 3
"!" is a unary not operator, which means it can take only one exression towards right of it.. and what ever Boolean result it gets it converts it to its opposite value But you have used it within two expressions , therefore it is not working
18th Sep 2020, 4:00 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 3
You used logical not operator you should use logical or || instead of ! x=5; y=++x; x=y++; eval("x=y+7"); document.write("<br>"+x+"</br>"); document.write("<br>"+y+"</br>"); x+=y*=7; document.write(x,y); var hy=7; var num=(hy==7||x==y)? "perfect" : "miserable"; document.write(num);
18th Sep 2020, 4:25 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
What purpose are trying to use it for? || => Or && => And
18th Sep 2020, 3:59 PM
Namit Jain
Namit Jain - avatar