WebDevelopersNotes logo

home-icon Home / JavaScript / Reserved words in JavaScript

Reserved words in JavaScript

Reserved words in JavaScript

The following is a list of reserved words and words that you should avoid using in JavaScript for naming functions, variables etc.

abstract        alert           arguments       Array
blur            boolean         Boolean         break
byte            callee          caller          captureEvents
case            catch           char            class
clearInterval   clearTimeout    close           closed
confirm         const           constructor     continue
Date            debugger        default         defaultStatus
delete          do              document        double
else            enum            escape          eval
export          extends         false           final
finally         find            float           for
focus           frames          function        Function
goto            history         home            if
implements      import          in              Infinity
innerHeight     innerWidth      instanceof      int
interface       isFinite        isNaN           java
length          location        locationbar     long
Math            menubar         moveBy          moveTo
name            NaN             native          netscape
new             null            Number          Object
open            opener          outerHeight     outerWidth
package         Packages        pageXOffset     pageYOffset
parent          parseFloat      parseInt        personalbar
print           private         prompt          protected
prototype       public          RegExp          releaseEvents
resizeBy        resizeTo        return          routeEvent
scroll          scrollbars      scrollBy        scrollTo
self            setInterval     setTimeout      short
static          status          statusbar       stop
String          super           switch          synchronized
this            throw           throws          toolbar 
top             toString        transient       true
try             typeof          unescape        unwatch
valueOf         var             void            watch
while           with            window

Sponsored Links

Your comments
Star icon IMPORTANT Have a question / problem? Click here to ask an expert.

Sponsored Links

Tips

How do I view a deleted web page?
Is there a way to view a deleted web page - one that is no longer available? Yes there is and the solution is quite simple. [more...]

Fact

In 2000, Joseph N. Grasso had applied for the "iPod" trademark which he planned to use for Internet Kiosks. However, in 2003, he assigned it to Apple. [more...]

We use cookies to give you the best possible website experience. By using WebDevelopersNotes.com, you agree to our Privacy Policy