Getting started:
Getting started
suggest change| Version | Release Date |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| E4X | |
| 5 | |
| 5.1 | |
| 6 | |
| 7 | |
| 8 |
JavaScript is a dynamic, weakly-typed language used for client-side as well as server-side scripting.
JavaScript is a commonly referenced implementation of ECMAScript standard.
Topics in this tag often refer to the use of JavaScript within the browser, unless otherwise stated. JavaScript files alone can’t be run directly by the browser; it’s necessary to embed them in an HTML document. If you have some JavaScript code you’d like to try, you can embed it in some placeholder content like this, and save the result as example.html:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test page</title>
</head>
<body>
Inline script (option 1):
<script>
// YOUR CODE HERE
</script>
External script (option 2):
<script src="your-code-file.js"></script>
</body>
</html>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
0
Getting started
1
Comments
8
Strings
11
Arrays
12
Objects
14
Classes
16
Map
17
Set
23
Conditions
24
Loops
25
Functions
27
Date
29
Scope
30
AJAX
31
Promises
34
Geolocation
35
Cookies
37
Generators
39
Strict mode
41
JSON
42
Binary Data
43
Web Storage
44
Fetch
45
Modules
46
Screen
47
Inheritance
48
Timestamps
50
Web Worker
51
Debugging
53
WebSockets
64
Console
67
Enumerations
68
Symbols
69
Localization
71
Callbacks
73
Modals
75
Event Loop
76
Events
79
Unit Testing
82
IndexedDB
86
Proxy
89
WeakMap
90
WeakSet
94
Namespacing
98
Context this
100
Vibration API
101
Fluent API
102
Tilde
103
Security issues
105
Contributors