Fandom

JavaScript Wiki

Keywords

87pages on
this wiki
Add New Page
Talk0 Share

A keyword is a reserved word which has a special meaning in JavaScript. See also word operators if this page fails to list the word which you are interested in.

breakEdit

Used to exit loops, switch...case statements and labeled block statements.

caseEdit

Necessarily organizes switch...case statements. (It can technically be omitted, but this renders the entire statement useless.)

catchEdit

Necessarily extends try...catch statements to handle errors.

continueEdit

Exits single iterations of loops.

defaultEdit

Further organizes switch...case statements.

doEdit

Begins do...while loops.

elseEdit

Optionally extends if statements.

falseEdit

A Boolean constant which represents falsehood.

finallyEdit

Optionally extends try...catch statements to execute commands regardless of whether any error was thrown in the try block and whether any errors remained uncaught.

forEdit

Begins for loops.

gotoEdit

Enters labeled blocks from anywhere.

ifEdit

Begins if statements.

returnEdit

Used within functions to exit the function and set the value of the function call.

switchEdit

Begins switch...case statements.

thisEdit

An immutable variable used inside methods to reference the owning objects. See this (computer science).

trueEdit

A Boolean constant which represents truth.

tryEdit

Begins try...catch statements.

varEdit

Declares a variable in anticipation of its use to prevent certain scoping issues involving functions.

var x;

x is undefined.

whileEdit

Begins while loops and ends do...while loops.

withEdit

Begins with statements.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.