JavaScript

Data Types

Number

String

Boolean

Structures

if

else

else if

while

do while

for

switch

Functions

Anonymous function

Named function

Immediately invoked function expression (IIFE)

User Interface

Prompt

Alert

Comments

Single Line

Block

Hello World

Example