&& (AND)
|| (OR)
! (NOT)

1. <script type=”text/javascript”>
2. var No1 = Number(100);
3. var No2 = Number(25);
4. document.writeln(No1 > 120 && No2 < 30);
5. document.writeln(No1 < 120 || No2 < 30);
6. document.writeln(!(No1 > No2));
7. </script>

(!=) — not equal to
(==) — equal

(>) — greater than
(<) — less than
(>=) — greater than or equal to
(<=) — less than or equal to

1. <script type=”text/javascript”>
2. var No1 = new Number(101);
3. var No2 = new Number(20);
4. document.writeln(No1 != No2);
5. document.writeln(No1 == No2);
6. document.writeln(No1 > No2);
7. document.writeln(No1 < No2);
8. document.writeln(No1 >= No2);
9. document.writeln(No1…

Dilshan Madushanka

Undergratuate in University of Moratuwa. Faculty of Information Technology

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store