DEV Community

Cover image for Coding Bytes: Part 1 — (Intro &) Data Types

Coding Bytes: Part 1 — (Intro &) Data Types

Waqar Mohammad on October 31, 2018

Intro This post was originally posted on medium I’ve been learning coding on / off for about 2 years now. Fallen off the wagon plenty of times....
Collapse
 
ytjchan profile image
ytjchan

Beware when using numbers as booleans though. Despite true == 1 returning true, true === 1 returns false.

Collapse
 
waqardm profile image
Waqar Mohammad

Thanks well noted. Will cover it in assignment operators

Collapse
 
arnas profile image
Arnas

Nice post! I only missed that you don't mention other falsy values in the Boolean paragraph. As you have mentioned one already.

Collapse
 
waqardm profile image
Waqar Mohammad

Hey Arnas,

Thanks for reading and you are right, I have omitted these but it was intentional as the post was getting a little long. Part 2 will cover the others and things focus a bit more on syntax etc too. Thanks for the feedback.

Collapse
 
hydroweaver profile image
Karan

I’ve also come to peace with the fact that I may learn/work slower than others, and no matter what I do, I can’t learn everything.

Bang on!

Collapse
 
waqardm profile image
Waqar Mohammad • Edited

Thanks Karan