Showing posts with label JavasCript Keywords. Show all posts
Showing posts with label JavasCript Keywords. Show all posts

JavaScript Keywords

 JavaScript Keywords

JavaScript statement often starts with a keyword to identify the action to be performed. These keywords are reserved words for JavaScript. Let's know some most usual keywords of JavaScript:

Keyword

Description

let

Assign a value inside a variable

var

Assign a variable inside a variable

const

Assign  constant number or string(value cant be changed during execution)

if

Identify a block of statements to be executed on given condition

switch

Identify a block of statements to be executed in different cases

for

Identify a block of statements to be executed in a loop

function

Declares a function

return

Exits a function

try

Implements error handling to a block of statements




















Python: Functions