Aviva Directory » Computers & Internet » Programming » JavaScript

Often abbreviated as JS, JavaScript is a high-level, interpreted scripting language that serves, along with CSS and HTML, as one of the core technologies used in Internet websites, as it enables interactivity in web pages.

The terms Vanilla JavaScript and Vanilla JS refer to JavaScript that is not extended by any frameworks or additional libraries. Scripts written in Vanilla JavaScript use plain JavaScript code.

Despite the similarities in names, JavaScript and Java are distinct, differing greatly in design. Although JavaScript is similar to Java in some ways, there are fundamental differences. The development of JavaScript was influenced more by Scheme and Self than by Java, and it was originally known as LiveScript.

JavaScript was created by Netscape Communications, in collaboration with Sun Microsystems, for use in the Netscape Navigator browser. Developed under the name of Mocha, it was officially named LiveScript when it first shipped with Netscape Navigator 2.0 in 1995, but was soon renamed JavaScript.

JavaScript is an object-oriented, cross-platform scripting language commonly used to make web pages interactive, with animations, pop-up menus, clickable buttons, and so forth.

Node.js is a server-side version of JavaScript that that is used to execute JavaScript code outside of a browser, allowing developers to use JavaScript for server-side scripting, producing dynamic web page content before the page is sent to the user's web browser.

Other technologies that relate to JavaScript include JSON, jQuery, and AJAX.

JSON refers to JavaScript Object Notation, and is an open-standard file format that uses human-readable text to transmit data objects. Although derived from JavaScript, other programming languages also use code to generate and parse JSON-format data.

Developed by the jQuery Team in 2006, jQuery is a JavaScript library that is used to simplify HTML Document Object Model (DOM) tree traversal and manipulation, event handling, CSS animation, and AJAX.

AJAX refers to a set of web development techniques that use several web technologies on the client-side to create asynchronous web applications. AJAX uses a group of technologies, such as JavaScript, HTML, and CSS, in combination to mark up and style information. The webpage can then be modified by JavaScript to dynamically display the new information.

All that is required to get started with JavaScript is a modern web browser that includes and allows access to the web console. However, while the web console allows you to execute one line of JavaScript code, it does not permit you to save any of your code samples. So, as with pretty much any other programming or scripting language, you will also use a text editor or, in some cases, an HTML editor.

In 1996, Microsoft released VBScript and JScript. JScript, a reverse-engineered implementation of Netscape's JavaScript, was included as part of Internet Explorer 4 and made available for server-side scripting in Internet Information Server. However, their implementations differed enough from JavaScript that it became difficult for designers to create a single website that would work well in both Microsoft's and Netscape's browsers. JavaScript gained a reputation for being one of the roadblocks to a cross-platform Internet, severely inhibiting the use of JavaScript in web implementations.

In 1997, ECMAScript was created to standardize JavaScript across platforms. JavaScript remains the best-known implementation of that standard, along with JScript and ActionScript.

Editors that are commonly used for writing JavaScript include Atom, Brackets, Cloud 9, Emacs, Notepad++, ScratchPad, Sublime Text, Vim, Visual Studio Code, Webclipse, Webstorm, and Vim, although online Webclipsse and Webstorm were developed with JavaScript specifically in mind. Any text editor can be used.

Topics related to JavaScript or any of its implementations, tools, tutorials, or other content associated with the scripting language are appropriate for this category.



Recommended Resources

Search for JavaScript on Google, Bing, or Yahoo!