Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2023-01-13 06:15:58
Size: 1192
Comment:
Revision 5 as of 2025-12-19 20:25:48
Size: 1090
Comment: Java -> ECMA
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from JavaScript
Line 4: Line 5:

[[Node]] has revolutionized JavaScript by enabling its use outside of browsers.
Line 45: Line 44:
To execute this outside of a browser, see [[Node#Example|Node]].
Line 72: Line 69:
[[Node]]

JavaScript

JavaScript is a lightweight scripting language designed to be run in web browsers.


Example

As a standalone JavaScript file:

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

This can be used in a web page like:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Example</title>
  <script src="example.js"></script>
</head>
<body>
  <p>"Hello, world!" has been written to the console.</p>
</body>
</html>

The script can also be embedded directly into the HTML like:

<script>
  console.log("Hello, world!");
</script>


Language

Frameworks


See also

MDN JavaScript reference

Node


CategoryRicottone

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