Thats a very rough comparison, for instance the differences of my and var and their scoping mechanisms can lead to ugly problems.
E.g. JS knows only function scope and not block scope AND unlike my does var also influence preceding variables (so called "hoisting")
Further more linking to MDN instead of W3Schools for further informations is generally a better idea.
For instance see Mozillas approach to come closer to my by introducing "let"¹!
For those who can read German here an old talk of mine from GPW2011 investigating the differences.
Cheers Rolf
( addicted to the Perl Programming Language)
¹) but unfortunately still hoisting =( | [reply] [d/l] [select] |
Thank you very much for your insight on that table, LanX.
I think I'll make a copy, and see if I can't improve, it based on your, and perhaps others, input -- not to mention, my own. ;)
Thanks again, for taking the time to respond, LanX. I look forward to reading your talk.
Best wishes.
--Chris
EDIT: Oh. If I could only read the German language. Or (Ich bin nicht in der Lage zu lesen der deutschen Sprache.).
I don't suppose you have an English translation of your talk, LanX?
Hey. I'm not completely useless. I can be used as a bad example.
| [reply] |
Further more linking to MDN instead of W3Schools for further informations is generally a better idea. FWIW, this guy has been using MDN all this time, but its broken again. This time for firefox by javascript (html content shows, then blanked out ). Possibly by googleanalytics , lots of js hate for ol firefox Never had issues like this with W3schools even though I stopped using it long ago Internet, its a thing :)
| [reply] |