Skip to main content
Change weakly-typed to dynamically-typed
Source Link

JavaScript (a dialect of ECMAScript) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weaklydynamically-typed, and interpreted language traditionally used for client-side scripting in web browsers. JavaScript can also be run outside the browser using a framework like Node.js, Nashorn, Wakanda, or Google Apps Script. Despite the name, it is unrelated to the Java programming language and shares only superficial similarities.

JavaScript (a dialect of ECMAScript) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed, and interpreted language traditionally used for client-side scripting in web browsers. JavaScript can also be run outside the browser using a framework like Node.js, Nashorn, Wakanda, or Google Apps Script. Despite the name, it is unrelated to the Java programming language and shares only superficial similarities.

JavaScript (a dialect of ECMAScript) is a high-level, multi-paradigm, object-oriented, prototype-based, dynamically-typed, and interpreted language traditionally used for client-side scripting in web browsers. JavaScript can also be run outside the browser using a framework like Node.js, Nashorn, Wakanda, or Google Apps Script. Despite the name, it is unrelated to the Java programming language and shares only superficial similarities.

some modernization - remove mentions of outdated frameworks, browsers, and language versions
Source Link
miken32
  • 42.4k
  • 16
  • 128
  • 178
  1. Debug your JavaScript code (see Creative, MDN, Google, & MSDN).

    Debug your JavaScript code (see Creative, MDN, Google, & MSDN).

  2. Isolate the problematic code and reproduce it in a Stack Overflow code snippet or an external online environment such as JSFiddle, JS Bin or PasteBin (remember to also include the code in the question itself). When possible, prefer to use Stack Overflow code snippets over external sites.

    Isolate the problematic code and reproduce it in a Stack Overflow code snippet. You may use an external site such as JSFiddle, JS Bin, or Codeply, but you must also include your code in the question itself.

  3. If a library or framework is used, then tag the question with the appropriate tags: for jQuery, for Prototype, for MooTools, and so on. However, if a framework is not used or necessary, do not include these tags.

    If you are using a library or framework and it is relevant to your problem, tag the question appropriately: for jQuery, for Vue, for React, etc.

  4. If the issue is client-side, mention which browser the code is having problems on, and what error messages, if any, were thrown by the browser. Use the Developer Tools for your browser (see "Useful Tools" below) to see these messages. If the question is browser-specific, use tags , , , , , , etc.

    If the issue is client-side, attempt to reproduce it on other browsers. Mention in the question which browser the code is having problems on, and what error messages, if any, were found in the browser's console. Use the Developer Tools for your browser (see "Useful Tools" below) to see these messages. If the question is browser-specific, use tags , , , , , , etc.

  5. Only tag the question as or if you are asking about an issue that concerns the combination of one of those with JavaScript and could only be answered with information specifically regarding either of those subjects.

    Only tag the question as or if you are asking about an issue that concerns the combination of one of those with JavaScript and could only be answered with information specifically regarding either of those subjects.

JavaScript runs on nearly every modern operating system, and an engine is included in all mainstream web browsers. Developed in 1995 by Brendan Eich at Netscape Communications, it was originally called LiveScript but was renamed to JavaScript due to Netscape's friendly relationship withthe popularity of Sun Microsystems (creators of's Java) language at the time.

Stand-alone JavaScript engines or interpreters are available as well, includingimplementations include:

Client-side JavaScript is typically used to manipulate the Document Object Model (DOM) and Cascading Style Sheets (CSS) within the browser. This allows user interface scripting, animation, automation, client-side validation and more.

MostAll modern browsers implementwith JavaScript based on the ECMAScript 6 specification, although some fail to implement some ES6 features. However, older browsers such as Internet Explorer 8support implement the ECMAScript 36 specification, which does not contain functions such as Function.prototype.bind or even JSON.parse, among others. You can see the current browser support of ES6 features

The current version of ECMAScript is ECMAScript 12, properly known as ECMAScript 2021, which was published in June 2021. Most modern browsers provide full support for this standard. You can see the current browser support of ES12 features at Can I Use?

window.onload = function() {
    alert('Hello World!');
};
window.onload = function() {
    alert('Hello World!');
};
  1. Debug your JavaScript code (see Creative, MDN, Google, & MSDN).
  2. Isolate the problematic code and reproduce it in a Stack Overflow code snippet or an external online environment such as JSFiddle, JS Bin or PasteBin (remember to also include the code in the question itself). When possible, prefer to use Stack Overflow code snippets over external sites.
  3. If a library or framework is used, then tag the question with the appropriate tags: for jQuery, for Prototype, for MooTools, and so on. However, if a framework is not used or necessary, do not include these tags.
  4. If the issue is client-side, mention which browser the code is having problems on, and what error messages, if any, were thrown by the browser. Use the Developer Tools for your browser (see "Useful Tools" below) to see these messages. If the question is browser-specific, use tags , , , , , , etc.
  5. Only tag the question as or if you are asking about an issue that concerns the combination of one of those with JavaScript and could only be answered with information specifically regarding either of those subjects.

JavaScript runs on nearly every operating system, and an engine is included in mainstream web browsers. Developed in 1995 by Brendan Eich at Netscape Communications, it was originally called LiveScript but was renamed to JavaScript due to Netscape's friendly relationship with Sun Microsystems (creators of Java) at the time.

Stand-alone JavaScript engines or interpreters are available as well, including:

JavaScript is typically used to manipulate the Document Object Model (DOM) and Cascading Style Sheets (CSS) within the browser. This allows user interface scripting, animation, automation, client-side validation and more.

Most modern browsers implement JavaScript based on the ECMAScript 6 specification, although some fail to implement some ES6 features. However, older browsers such as Internet Explorer 8 implement the ECMAScript 3 specification, which does not contain functions such as Function.prototype.bind or even JSON.parse, among others. You can see the current browser support of ES6 features

The current version of ECMAScript is ECMAScript 12, properly known as ECMAScript 2021, which was published in June 2021.

window.onload = function() {
    alert('Hello World!');
};
  1. Debug your JavaScript code (see Creative, MDN, Google, & MSDN).

  2. Isolate the problematic code and reproduce it in a Stack Overflow code snippet. You may use an external site such as JSFiddle, JS Bin, or Codeply, but you must also include your code in the question itself.

  3. If you are using a library or framework and it is relevant to your problem, tag the question appropriately: for jQuery, for Vue, for React, etc.

  4. If the issue is client-side, attempt to reproduce it on other browsers. Mention in the question which browser the code is having problems on, and what error messages, if any, were found in the browser's console. Use the Developer Tools for your browser (see "Useful Tools" below) to see these messages. If the question is browser-specific, use tags , , , , , , etc.

  5. Only tag the question as or if you are asking about an issue that concerns the combination of one of those with JavaScript and could only be answered with information specifically regarding either of those subjects.

JavaScript runs on every modern operating system, and an engine is included in all mainstream web browsers. Developed in 1995 by Brendan Eich at Netscape Communications, it was originally called LiveScript but was renamed to JavaScript due to the popularity of Sun Microsystems's Java language at the time.

JavaScript engines or implementations include:

Client-side JavaScript is typically used to manipulate the Document Object Model (DOM) and Cascading Style Sheets (CSS) within the browser. This allows user interface scripting, animation, automation, client-side validation and more.

All modern browsers with JavaScript support implement the ECMAScript 6 specification.

The current version of ECMAScript is ECMAScript 12, properly known as ECMAScript 2021, which was published in June 2021. Most modern browsers provide full support for this standard. You can see the current browser support of ES12 features at Can I Use?

window.onload = function() {
    alert('Hello World!');
};
briefly hinted towards an explanation of the usage of `onload` in the example snippet
Source Link
Loading
the website is no longer functional and the book is not free anymore
Source Link
Loading
Follow consensus of https://meta.stackoverflow.com/a/302293/13376511
Source Link
Loading
added 4 characters in body
Source Link
Abdulla Nilam
  • 40.1k
  • 18
  • 86
  • 115
Loading
clarity of reading
Source Link
Abdulla Nilam
  • 40.1k
  • 18
  • 86
  • 115
Loading
Correct English and improve style. Remove 'A must read!' which is opinion. Other links don't have opinions. Change 'malicious authors' to 'entities with malicious intent'. Fix broken links: JavaScript Garden, Khan Academy (now points to JavaScript animation page, change 'best' to 'good')
Source Link
Loading
deleted 220 characters in body
Source Link
samliew
  • 79.6k
  • 112
  • 175
  • 319
Loading
Clarify JS code snippet (it's specifically browser code, not Node.js, like some people might read "display on your screen" as)
Source Link
Loading
Copy edited (e.g. ref. <https://en.wiktionary.org/wiki/stand-alone#Adjective> and <https://en.wikipedia.org/wiki/Meteor_%28web_framework%29>). Expanded.
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134
Loading
Loading
Misc fixes to spelling, links, and punctuation
Source Link
Loading
Loading
reordered some sections; question info to the top, grouped learning resources together
Source Link
miken32
  • 42.4k
  • 16
  • 128
  • 178
Loading
Added "Recommended" on "snippets" to the "ways to provide live demos"
Source Link
Loading
deleted 6 characters in body
Source Link
dippas
  • 60.9k
  • 15
  • 126
  • 134
Loading
added 2 characters in body
Source Link
Cody Gray
  • 246.3k
  • 53
  • 514
  • 591
Loading
minor text improvements
Source Link
Trott
  • 70.7k
  • 27
  • 184
  • 218
Loading
fixed typo in markdown
Source Link
Adrian Mole
  • 52.2k
  • 193
  • 62
  • 101
Loading
1
2 3 4 5
11