JavaScript View
Originally developed by Brendan Eich and known as LiveScript, which was renamed to JavaScript in 1995. JavaScript is an interpreted client-side scripting language that allows a web designer the ability to insert code into their web page. JavaScript is commonly placed into an HTML, ASP, or a similar file and run directly from the web page to perform tasks such as printing the time and date, creating a calendar, or other tasks that are not possible through plain HTML. Below is a basic example of a JavaScript that prints Hello World!.
<SCRIPT LANGUAGE=“JavaScript”>
<!—Hide from old browsers
[removed](‘Hello World!’);
// Stop hide—>
</SCRIPT>
Although JavaScript files are often embedded into the HTML file, users can also save their JavaScript code in an external file. This file often ends with a .js file extension.