I recently studied JavaScript at the Khan Academy because it was taught all over the UK, so I learned English in the course of learning.
Feel their learning method seems not quite right, although every day there are learning, but they did not develop the habit of taking notes and timely review, so every day to learn to feel or harvest not much, this problem to correct. He who knows the past does not know what he can do. The truth is that it is not far away, but it is not yesterday. )
Here's an article on taking notes
Logic and IF statements
In JavaScript there are some differences between logic and if judgment statements and previous studies
var xPos = $; // this place a ' = ' stands for assignment if (4 = = ' 4 ') // two ' = ' can be used to determine the value of two types, where the return value is True if (4 = = = ' 4 ') // three ' = ' is used to determine the same value for two types, where the return value is False
More detailed answers to these questions
JavaScript (1)