I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.
JavaScript Comparisons — JavaScript Series — Part 5
A full series to learn the JavaScript from zero
There are some JavaScript types that we’ll discuss right now. We’ll work on that later. They are — Undefined, Null, Symbol, Object
Today we are going to learn comparisons in JavaScript.
Lets start with checking equal. In JavaScript we need to use ===
for checking if they are same or not.
To find out if they are not same we use !==
This gives us the boolean result
To find some value is getter than some value we use >
To find some value is getter than and equal to some value we use >=
To find some value is smaller than some value we use <
To find some value is smaller than and equal to some value we use >=
Do you understand the comparisons signs now in JavaScript ?
Originally it published on nerdjfpb blog. Check the git for codes.