#100DaysOfWeb in Python Transcripts
Lecture: Common JS gotchas
0:25 And that led to some weird decisions in the design and here he shows some examples. Go watch this talk.
0:34 It's not only highly entertaining, and inspiring but also visionary 'cause a lot of what he said five years ago is actually very relevant today.
0:55 the less isolated something is the less reliable. Make something global and it can change in multiple locations. We've already seen that
1:05 if you use the var keyword to initialize variables those variables can easily be clobbered in outer namespaces. So you should use let and const.
1:29 allows you to omit semi-colons at the end of your statements. Which usually is not a problem unless you space your code in a certain way
1:38 then errors again pass silently. So make sure you use semi-colons to not run that risk. And there are two equality operators.
1:50 If you use double equals sign to compare number one and string one it would say that they were equal. But that might not be what you want
2:00 because although they look the same they're not from the same data type. So it's recommended to use triple quotes which not only compares the values
2:11 but also the types. So in that case number one and string one would not be the same. And, similarly there are two ways
2:20 to say that something is null, or undefined. Where Python for example only has none and it still confuses me which one is used in which scenario.
2:32 Remember, errors should never pass silently according to Python, unless explicitly silenced. There should be one, and preferably only one
3:25 So any time you can invest learning this language is time well spent.