All Blogs

JS-103 | Declarations & Statements

JavaScript applications consist of statements with an appropriate syntax. A single statement may span multiple lines. Multiple statements may occur on a single line if each statement is separated by a semicolon. This isn’t a keyword, but a group of keywords.

Javascript code

Section Topic
Declarations
-Variables 1 boolean
2 null
3 undefined
4 number & bigInt
5 string
6 Symbol
-functions Object
-Casting and Coercion 1. Casting - (Explicit Conversion)
2. Coercion - (Implicit Conversion)
2.1 Coercion to number
2.2 Coercion to string
2.3 Coercion to boolean

Declarations & Statements


Declaring Variables

var

let

const


Declaring functions & classes

function

function*

async function

async function*

class


Control Flow Statements

return

break

continue

throw

if...else

switch

try...catch

Looping Statements

while

do-while

for

for...in

for...of

for await...of

Misc. Statements

empty

block

debugger

export

import

label

with

Published Sep 27, 2022

Solutions Architect • Web Developer • Quality Analyst • Blogger