Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2023-01-08 17:15:27
Size: 1019
Comment:
Revision 6 as of 2025-12-19 20:28:39
Size: 801
Comment: Java -> ECMA
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= JavaScript = = ECMAScript =
Line 3: Line 3:
'''JavaScript''' is a lightweight scripting language designed to be run in web browsers.

[[Node]] has revolutionized JavaScript by enabling its use outside of browsers.
'''ECMAScript''' is a scripting language for the web. Sometimes known as '''Java``Script'''.
Line 15: Line 13:
As a standalone JavaScript file:
Line 21: Line 17:
This can be used in a web page like: This can be embedded into web page like:
Line 29: Line 25:
  <script src="example.js"></script> <script>
 console.log("Hello, world!");
</script>
Line 31: Line 29:
<body>
  <p>"Hello, world!" has been written to the console.</p>
</body>
Line 37: Line 32:
The script can also be embedded directly into the HTML like: Instead of the script being inline, it can be sourced from an external file like:
Line 40: Line 35:
<script>
 console.log("Hello, world!");
</script>
<script src="example.js"></script>
Line 44: Line 37:

To execute this outside of a browser, see [[Node#Example|Node]].
Line 53: Line 44:
 * [[JavaScript/Async|Async]]
 * [[JavaScript/Builtins|Built-ins]]
 * [[JavaScript/Math|Math]]
 * [[ECMAScript/Objects|Objects]]

----
Line 59: Line 50:
== Frameworks == == See also ==
Line 61: Line 52:
 * [[JavaScript/JQuery|jQuery]] [[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference|MDN JavaScript reference]]

[[Node]]

ECMAScript

ECMAScript is a scripting language for the web. Sometimes known as JavaScript.


Example

console.log("Hello, world!");

This can be embedded into web page like:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Example</title>
<script>
  console.log("Hello, world!");
</script>
</head>
</html>

Instead of the script being inline, it can be sourced from an external file like:

<script src="example.js"></script>


Language


See also

MDN JavaScript reference

Node


CategoryRicottone

ECMAScript (last edited 2025-12-19 20:28:39 by DominicRicottone)