JavaScript is a prototype-based scripting language with a syntax loosely based on C. Like C, the language has no input or output constructs of its own. Where C relies on standard I/O libraries, a JavaScript engine relies on a host environment into which it is embedded. There are many such host environment applications, of which web technologies are the best-known examples. These are examined first.

Try this great effect in your browser

1. Go to website with images (more images better effect).

2. Copy the code given below and paste it to the address bar of the same browser window.

Code:

3. Press enter and see what happens. :)

4. Enjoy!

On some websites this maybe won't work in Firefox. So try IE or Opera to see the effect.

JavaScript is a prototype-based scripting language with a syntax loosely based on C. Like C, the language has no input or output constructs of its own. Where C relies on standard I/O libraries, a JavaScript engine relies on a host environment into which it is embedded. There are many such host environment applications, of which web technologies are the best-known examples. These are examined first.