in reply to Re: A comparison of Perl vs. JavaScript -- a reference table.
in thread A comparison of Perl vs. JavaScript -- a reference table.
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 =(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A comparison of Perl vs. JavaScript -- a reference table.
by taint (Chaplain) on Dec 06, 2013 at 07:02 UTC | |
|
Re^3: A comparison of Perl vs. JavaScript -- a reference table.
by Anonymous Monk on Dec 14, 2020 at 23:56 UTC |