JavaScript is definitely a foreign land. I have pity for those who cannot easily know whether 2+2 will give 4 or '22'. But here are some familiar sights to look for.
With current browsers JavaScript supports regular expressions. While they are called Perl compatible they are not in truth Ilya compatible. But they do provide a familiar sight.
Advanced monks may recognize that JavaScript supports anonymous functions with full closures. This is very nice if you have learned to use thse in Perl. However many have not.
And I have saved the best for last. Did you know that you can use a JavaScript variable in the same way you would use a Perl hash? The language is different, but the properties of the object are your keys, and the values are your values. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: A thought for JavaScript exiles
by toadi (Chaplain) on Aug 07, 2000 at 12:48 UTC | |
by royalanjr (Chaplain) on Aug 07, 2000 at 17:51 UTC | |
by merlyn (Sage) on Aug 07, 2000 at 18:14 UTC | |
by tilly (Archbishop) on Aug 07, 2000 at 20:21 UTC | |
by merlyn (Sage) on Aug 07, 2000 at 20:29 UTC | |
| |
by Melvin (Beadle) on Aug 07, 2000 at 22:53 UTC | |
by Melvin (Beadle) on Aug 07, 2000 at 18:02 UTC |