JavaScript Keywords

Here is a list of some of the keywords of JavaScript

KeywordDescription
varDeclares a variable
letDeclares a block variable
constDeclares a block constant
ifMarks a block of statements to be executed on a condition
switchMarks a block of statements to be executed in different cases
forMarks a block of statements to be executed in a loop
functionDeclares a function
returnExits a function
tryImplements error handling to a block of statements