Web Programming Languages

Web Coding in JavaScript

JavaScript code is embedded directly into the HTML using script tags.

This makes JavaScript much easier to use than other langauges, which may require that all raw text be printed using a print() statement of some kind.

Including text from external files can be tricky. Those files have to be included as JavaScript code, but it is easy to make clean array and join them with a single statement for inclusion anywhere in the DOM.

JavaScript also lets us manipulate the DOM (the document from which the page is drawn), and it gives us access to user events such as mouse clicks and keystrokes.

However, JavaScript does not have access to the file system for either read or write. So we have to store our data within the code as arrays, or in HTML5 local storage.

HTML5 local storage is accessible through a key=>value pair interface, and also through a SQLite interface.

Source code

The other languages have an option to view the source code, but you can view the JavaScript code directly in your browser. So I didn't provide that function here.