Notes for You:: Relational Operators in JavaScript - JavaScript Tutorial 22
are also known as comparison operators.
are used find the relationship between two values or compare relationship between two values.
On comparison they yield the result either true or false.
< (less-than Operator)
> (greater-than Operator)
<= (less-than or equal-to Operator)
>= (greater-than or equal-to Operator)
== (equal-to Operator)
!= (not-equal-to Operator)
=== (strictly-equal-to Operator)
!== (strictly-not-equal-to Operator)
Note:
replace < with less-than symbol
replace > with greater-than symbol
Example Code:
document.write("Relational Operators");
document.write(3 < 4); //true
document.write(5 < 4); // false
document.write(5 > 4); // true
document.write(5 > 6); // false
document.write(5 <= 6); // true
document.write(6 <= 6); // true
document.write(7 <= 6); // false
document.write(7 >= 6); // true
document.write(6 >= 6); // true
document.write(5 >= 6); // false
document.write(5 == 6); // false
document.write(5 == 5); // true
document.write(5 == "5"); // true
document.write(5 === "5"); // false
document.write(5 != 6); // true
document.write(5 != "5"); // false
document.write(5 !== "5"); // true
document.write("Hello" == "Hello");// true
=========================================
Follow the link for next video:
JavaScript Tutorial 23 - Logical Operators in JavaScript | JavaScript Logical Operators
• Logical Operators in JavaScript - Jav...
Follow the link for previous video:
JavaScript Tutorial 21 - Arithmetic Operators in JavaScript | JavaScript Arithmetic Operators
• Arithmetic Operators in JavaScript - ...
=========================================
JavaScript Tutorials Playlist:-
• JavaScript Tutorials
=========================================
Watch My Other Useful Tutorials:-
jQuery Tutorials Playlist:-
• jQuery Tutorials
jQuery UI Tutorials Playlist:-
• jQuery UI Tutorials
Bootstrap Tutorials Playlist:-
• Bootstrap4 Tutorials
=========================================
► Subscribe to our YouTube channel:
/ chidrestechtutorials
► Visit our Website:
https://www.chidrestechtutorials.com
=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
On this page of the site you can watch the video online Relational Operators in JavaScript - JavaScript Tutorial 22 with a duration of hours minute second in good quality, which was uploaded by the user ChidresTechTutorials 20 February 2017, share the link with friends and acquaintances, this video has already been watched 4,382 times on youtube and it was liked by 115 viewers. Enjoy your viewing!