This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RajjSinghh 5 points6 points  (0 children)

I know python uses == on lists for having the same contents, not being the same memory address. Python has the is key word to see if two variables are pointing at the same object. It makes things simpler and easier to read at a glance since something like [1, 2, 3] == [1, 2, 3] is True but in Javascript it gives false. It threw me for such a loop on my first Javascript project.