Hey all. So in this JavaScript tutorial I wanted to introduce the comparison operators – well, you’ve already seen 1, the less than sign . We’ll be using these in up and coming video’s to make more complex logical flow statements.
As usual, any questions just fire away :).
SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1
========== JavaScript for Beginners Playlist ==========
========== CSS for Beginners Playlist ==========
========== HTML for Beginners Playlist ==========
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk
========== Social Links ==========
Twitter – @TheNetNinja – https://twitter.com/thenetninjauk
Original source
7 responses to “JavaScript Tutorial For Beginners #14 – Comparison Operators”
Thanks for sharing. TT
is === makes the string a number ???
Obviously, this tutorials are very much effective for the learners. So, Thanks a lot.
Hi, How would i write a conditional statement to find the largest of five numbers then display an alert box only showing the largest number as a result?
so x != is the opposite of x== … and x!== is the opposite of x === ? is that correct
when i write x="5" and check x==5, it gives true but when i write x="hello" and check if x==hello, it gives an error. what is that? isn't == just supposed to check value.inside "" marks?
For the >= and <= comparison operators, are they just shorthand for:
value1 > value2 || value1 = value2 and
value1 < value2 || value1 = value2?
Or am I thinking too far ahead?