Relational Operators in JavaScript - JavaScript Tutorial 22

Pubblicato il: 20 febbraio 2017
sul canale di: ChidresTechTutorials
4,382
115

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


In questa pagina del sito puoi guardare il video online Relational Operators in JavaScript - JavaScript Tutorial 22 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato ChidresTechTutorials 20 febbraio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,382 volte e gli è piaciuto 115 spettatori. Buona visione!