Skip to content

Commit 9efaf07

Browse files
Markus Amalthea Magnusonajpiano
Markus Amalthea Magnuson
authored andcommitted
Update list of reserved words in JavaScript. Fixes #301.
All of these are only considered reserved when in strict mode, but it is in any case a more correct list than the current one. See #295 for further discussion on how to present this list.
1 parent dbdb2c8 commit 9efaf07

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

page/javascript-101/reserved-words.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,53 @@
22
title: Reserved Words
33
level: beginner
44
source: http://jqfundamentals.com/legacy
5-
attribution:
5+
attribution:
66
- jQuery Fundamentals
77
---
8-
JavaScript has a number of reserved words, or words that have special meaning in the language. You should avoid using these words in your code except when using them with their intended meaning.
8+
JavaScript has a number of "reserved words," or words that have special meaning in the language. You should avoid using these words in your code except when using them with their intended meaning.
99

10-
- abstract
11-
- boolean
1210
- break
13-
- byte
1411
- case
1512
- catch
16-
- char
1713
- class
1814
- const
1915
- continue
2016
- debugger
2117
- default
2218
- delete
2319
- do
24-
- double
2520
- else
2621
- enum
2722
- export
2823
- extends
29-
- final
24+
- false
3025
- finally
31-
- float
3226
- for
3327
- function
34-
- goto
3528
- if
3629
- implements
3730
- import
3831
- in
3932
- instanceof
40-
- int
4133
- interface
42-
- long
43-
- native
34+
- let
4435
- new
36+
- null
4537
- package
4638
- private
4739
- protected
4840
- public
4941
- return
50-
- short
5142
- static
5243
- super
5344
- switch
54-
- synchronized
5545
- this
5646
- throw
57-
- throws
58-
- transient
47+
- true
5948
- try
6049
- typeof
6150
- var
6251
- void
63-
- volatile
6452
- while
6553
- with
54+
- yield

0 commit comments

Comments
 (0)