Relational Operators in JavaScript - JavaScript Tutorial 22

Veröffentlicht am: 20 Februar 2017
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Relational Operators in JavaScript - JavaScript Tutorial 22 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ChidresTechTutorials 20 Februar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,382 Mal angesehen und es wurde von 115 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!