List of keywords and reserved words in JavaScript

Keyword or Reserved words

vardeleteforletbrack
supervoidcasedostatic
functionnewswitchwhileinterface
catchelseifpackagefinally
thiswithclassenumdefault
implementsprivatethrowtiledtypeof
constexportimportprotectedreturn
truecontinueextendsin
instanceof
publictrydebuggerfalse

In JavaScript, we do not need to specify the type of the variable because it is dynamically used by the JavaScript engine.
We can use var data type. It can hold any type of data like String, Number, Boolean, etc.

Primitive Data Type Non-Primitive Data type

String Object
Number Array
Boolean RegExp
Undefine

Tagged : / / / /

Identifiers and Reserved Words – JavaScript

An identifier is a name having a few letters, numbers and special characters _ (underscore). It is used to identify a variable, function, symbolic constant and so on.

Ex-

  • X2
  • PI
  • Sigma
  • matadd

Tagged : / / /