SuperMike
February 7th, 2007, 09:30 AM
Here's some things you might not know about Javascript.
* It used to be called Livescript at Netscape, eons ago.
* Yes, you can start your variables with a dollar sign like you do in Perl or PHP. $Kewl.
* On Ubuntu, ngs-js is a Javascript interpreter that is "good enough" and has a lot of functionality for all kinds of uses, including the same kinds of things you might use Perl on a server, and it has a very tiny footprint. It also can be used as a CGI language in your web server. Javascript doesn't have to be solely a web thing, though -- you can use it for monitoring servers, for instance.
* Some people don't know that when you don't use 'var' in a function, it becomes a variable in the global scope instead of the local scope, and that's "expensive" (consumes resources).
* I like how Javascript isn't that hokey. I mean, Perl's interesting here or there, but it has some oddball things in it like the 'else if' being called 'elsif' and so on.
* It used to be called Livescript at Netscape, eons ago.
* Yes, you can start your variables with a dollar sign like you do in Perl or PHP. $Kewl.
* On Ubuntu, ngs-js is a Javascript interpreter that is "good enough" and has a lot of functionality for all kinds of uses, including the same kinds of things you might use Perl on a server, and it has a very tiny footprint. It also can be used as a CGI language in your web server. Javascript doesn't have to be solely a web thing, though -- you can use it for monitoring servers, for instance.
* Some people don't know that when you don't use 'var' in a function, it becomes a variable in the global scope instead of the local scope, and that's "expensive" (consumes resources).
* I like how Javascript isn't that hokey. I mean, Perl's interesting here or there, but it has some oddball things in it like the 'else if' being called 'elsif' and so on.