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
En esta página del sitio puede ver el video en línea Relational Operators in JavaScript - JavaScript Tutorial 22 de Duración hora minuto segunda en buena calidad , que subió el usuario ChidresTechTutorials 20 febrero 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,382 veces y le gustó 115 a los espectadores. Disfruta viendo!