3 ms·
FACT. There is a screenshot in the post, on your link it may be right, but on the link referenced in the post, it's wrong.
by DjDarkman 16y ago
FACT.
There is a screenshot in the post, on your link it may be right, but on the link referenced in the post, it's wrong.
- originalgeek 16y agoActually, the statements in the image you posted are all outside of functions, and thus in the global context, so the statement that they are equivalent is true.
- DjDarkman 16y agoThe problem is that particular w3schools page does not indicate that, they simply state that they are the same, without even slightly mentioning that it's because they are not in a function. My article shows off this difference. In short the page is misleading, because it doesn't state that the two are only interchangeable in those two examples, but not in in every situation.