Skip to main content
CodeSpeedTest
Languages
Start TypingJump into a test — pick any languageAdaptive TrainingUnlock chars as you master them — home row to !@#$%Practice DrillsFocused sessions targeting weak spotsDaily ChallengesNew coding challenges every dayRace ModeCompete against others in real timeAI OpponentRace against an AI at your WPM level
LeaderboardGlobal rankings for every languageCertificatesEarn verifiable Bronze / Silver / Gold certsActivityDaily streaks & historical analyticsProfileYour stats, badges & achievements
Browse Languages500+ languages with real code examplesBlogTips, guides & deep divesFAQCommon questions answeredGetting StartedNew to CodeSpeedTest?AboutOur story & mission
Pricing
Start Typing
Tools/JavaScript Keywords

JavaScript Keywords & Reserved Words

Every JavaScript keyword grouped by category with one-line descriptions. Master these and your fingers will keep up with your ideas.

Declarations

KeywordDescription
varFunction-scoped variable declaration (legacy)
letBlock-scoped mutable variable
constBlock-scoped immutable binding

Control Flow

KeywordDescription
ifConditional branch
elseFallback branch
forCount-based or iterator loop
whileCondition-checked loop
doExecute body then check condition
switchMulti-case conditional
caseMatch arm inside switch
breakExit loop or switch
continueSkip to next loop iteration
returnReturn a value from a function
defaultFallback case in switch

Functions & Async

KeywordDescription
functionDeclare a function
asyncMark a function as asynchronous
awaitWait for a Promise to resolve
yieldPause a generator and produce a value
yield*Delegate to another generator or iterable

Classes & Objects

KeywordDescription
classDefine a class
extendsInherit from a parent class
superReference the parent class constructor/methods
newInstantiate an object
thisReference the current object context
staticDeclare a static class member

Modules

KeywordDescription
importImport bindings from a module
exportExport bindings from a module
defaultDefault export of a module
fromSpecify the module source
asAlias an import or export

Error Handling

KeywordDescription
tryBegin a guarded block
catchHandle a thrown exception
finallyAlways-run cleanup block
throwThrow an exception

Operators & Types

KeywordDescription
typeofReturn type string of an operand
instanceofCheck prototype chain membership
voidEvaluate expression and return undefined
deleteRemove a property from an object
inCheck if property exists in object
ofIterate over iterable values (for...of)

TypeScript Adds More

TypeScript extends JavaScript with additional keywords: type, interface, enum, namespace, readonly, abstract, declare, and more. Practice typing TypeScript below.

Practice typing these in CodeSpeedTest →

Knowing keywords is not the same as having them in your muscle memory. Start with Hello World and build up to real-world JS patterns.

Practice JavaScript →Practice TypeScript →
CodeSpeedTest

Improve your coding speed, code accuracy, and programming syntax WPM with practice sessions across 500+ programming languages.

Quick Links

HomeAboutFeaturesGetting StartedLanguages

Resources

Pro ⚡ PricingCertifyFAQBlogContactLeaderboardRaceChallengesFree ToolsWPM CalculatorPrivacy PolicyTerms of Service

Connect

CodeSpeedTest on GitHubCodeSpeedTest on TwitterEmail CodeSpeedTest

© 2026 CodeSpeedTest. All rights reserved.