Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2023-01-08 17:15:27
Size: 1019
Comment:
Revision 4 as of 2023-04-06 16:16:33
Size: 1053
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

[[Node]] has revolutionized JavaScript by enabling its use outside of browsers.
Line 45: Line 43:
To execute this outside of a browser, see [[Node#Example|Node]].
Line 55: Line 51:
 * [[JavaScript/CryptoSubtle|CryptoSubtle]]
Line 63: Line 60:
----



== See also ==

[[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference|MDN JavaScript reference]]

[[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

JavaScript (last edited 2023-04-06 16:16:33 by DominicRicottone)