Skip to content
Related Articles
Open in App
Not now

Related Articles

JavaScript | Reserved Words

Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 24 Mar, 2023
Improve Article
Save Article
Like Article

In JavaScript, you cannot use these reserved words as variable names, label names, or function names.

Reserved Words:

abstractargumentsbooleanbreakbyte
casecatchcharconstcontinue
debuggerdefaultdeletedodouble
elseevalfalsefinalfinally
floatforfunctiongotoif
implementsininstanceofintinterface
longnativenewnullpackage
privateprotectedpublicreturnshort
staticswitchsynchronizedthisthrow
throwstransienttruetrytypeof
varvoidvolatilewhilewith
yield    

Reserved Words added in ECMAScript 5 and 6:

awaitsclassenumexport
extendsimportletsuper

Removed Reserved Words: The following reserved words have been removed from ECMAScript 5 and 6.

abstractbooleanbytechar
doublefinalfloatgoto
intlongnativeshort
synchronizedthrowstransientvolatile

Other Reserved Words: JavaScript can be used as the programming language in many applications.

alertallanchorareaanchors
assignblurbuttoncheckboxclearInterval
clearTimeoutclientInformationcloseclosedconfirm
constructorcryptodecodeURIdecodeURIComponentdefaultStatus
document elementelementsembedembeds
encodeURIencodeURIComponentescapeeventfileUpload
focusformformsframeinnerHeight
innerWidthlayerlinklocationmimeTypes
navigatenavigatorframesframeRate hidden
historyimageimagesoffscreenBufferingopen
openeroptionouterWidthouterHeightpackages
pageXOffsetpageYOffsetparentparseFloatparseInt
passwordpkcs11pluginpromptpropertyIsEnum
radioresetscreenXscreenYscroll
secureselectselfsetIntervalsetTimeout
statussubmittainttexttextarea

HTML Event Handlers: The name of all HTML event handlers  should not be used in javascript

onbluronclickonerror
onfocusonkeydownonkeypress
onkeyup onmouseoveronload
onmouseuponmousedownonsubmit
My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!