JS Tutorial For Beginners - #2 If Else & Comparison Operators
In this free Javascript tutorial, we'll cover if, else statements & comparison operators. This is a Free JS Course designed for beginners. These Javascript lessons cover the basics of Javascript and programming basics from the very beginning.
In the last lesson, we covered variables and several Javascript types. Before covering more types, we'll cover comparison operators and if, else statements.
Comparison Operators Covered in this Video:
(youtube doesn't allow me to do less-than and greater-than signs, which is really quite silly,
so I have to use LT and GT)
LT Less than
GT Greater than
LT= Less than or equal to
GT= Greater than or equal to
== equal to
!= not equal to
There are also "strict" equality types
=== same value and same type
!== not same value and same type
For example:
"2" == 2 will be true - even though they're different types, they're considered equal
"2" === 2 will be false because the second value is a number type, where the first is a string type
You should use the triple === whenever possible, as it's more specific.
Visit Our Website : https://metapayclicks.com
Telegram channel : https://t.me/metapayclicks
Facebook page : https://www.facebook.com/metapayclicks/
Linkedin : https://www.linkedin.com/company/mpc-network/
Twitter : https://twitter.com/MetapayC
locals.com : https://locals.com/member/MetaPayC
Instagram : https://www.instagram.com/metapayclicks/
Tumblr : https://metapayclicks.tumblr.com/
Youtube Channel : https://www.youtube.com/channel/UCwAamK7hbpF51HcPgJSTuVA
Flickr : https://www.flickr.com/photos/196588923@N04/
Tiktok : https://www.tiktok.com/@metapayc
Dribbble : https://dribbble.com/metapayc
Vk : https://vk.com/id752424948
Reddit : https://www.reddit.com/user/MetaPayC
-
LIVE
Glenn Greenwald
2 hours agoDangerous Charges Brought Against Pavel Durov By France; Columbia Student Protester On Campus Free Speech And Fall Protests | SYSTEM UPDATE #324
3,889 watching -
LIVE
Stephen Gardner
11 minutes ago🔴BREAKING: Gavin Newsom JUST ANGERED 91 million Americans!
874 watching -
LIVE
The Jimmy Dore Show
2 hours agoHarris Flip-Flops on Border Wall! Zuckerberg ADMITS to Biden Admin Censorship! w/ Chris Hedges
19,170 watching -
1:13:05
Battleground with Sean Parnell
5 hours agoDo NOT Buy the Public Polls w/ Savage Rich Baris
24.8K17 -
LIVE
2 MIKES LIVE
1 hour ago2 MIKES LIVE #109 News Breakdown Wednesday LIVE from Garden State Distillery!
818 watching -
LIVE
The Big Mig™
22 hours agoLt. Gen Sami Sadat, The Last Commander-The Truth About Afghanistan
2,712 watching -
LIVE
Sarah Westall
3 hours agoRFK Jr Trump Endorsement & NEW DATA: Real Death Numbers, Real Injury Numbers w/ Steve Kirsch
705 watching -
1:22:36
Redacted News
5 hours agoBOMBSHELL! AMERICANS FIGHTING AND DYING IN UKRAINE, PUTIN'S ARMY CONTROLS DONBAS | Redacted Live
96.3K349 -
2:05:46
vivafrei
5 hours agoMalaysia Flgith 370 Mystery - Live with Ashton Forbes! Viva Frei Interview
77.3K123 -
1:14:59
Savanah Hernandez
3 hours agoThe entire purpose of the Democrat party is to subvert the will of the people
28.8K15