JS Tutorial For Beginners - #2 If Else & Comparison Operators @learncodeacademy
JS Tutorial For Beginners - #2 If Else & Comparison Operators  @learncodeacademy
Uploaded February 2015 | Updated September 2026, 2 weeks ago
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.

-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
youtube.com/watch?v=fgOO9YUFlGI
-~-~~-~~~-~~-~-
JS Tutorial For Beginners - #2 If Else & Comparison OperatorsModular Javascript - Javascript Tutorial on the Object Literal PatternE-Commerce Made Easy - FINALLY, E-COMMERCE IS FUN for developersVue.js Tutorial #7 - Scaling Vue with Single File ComponentsHTML CSS Tutorial for Beginners - Web Development Tutorials For BeginnersDocker Tutorial - Docker Container Tutorial for BeginnersWhat Makes Javascript Weird...and AWESOME - Pt 1WEB DEVELOPMENT - SECRETS TO STARTING A CAREER in the Web Development IndustryDocker Container Tutorial - How to build a Docker Container & ImagejQuery Tutorial #6 - Building a jQuery Image SliderMoltin + Angular Wrapping Things UpjQuery Tutorial #4 - DOM Traversal with jQuery
LearnCode.academy |

JS Tutorial For Beginners - #2 If Else & Comparison Operators

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER