<JavaScript> Reference

VORBLY CODE - CODE YOUR WEBSITE

JAVASCRIPT REFERENCE

JavaScript (or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.

The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.

arrow&amp;v

JavaScript Statements

JavaScript statements are the instructions to be executed by the web browser.

For Example:

document.getElementById("intro").innerHTML = "Hello World!";  // Write text in a HTML element //

NAME

DESCRIPTION

CATEGORY

break

Exits a loop or switch

Identifiers

const

Declares a variable with constant value

Identifiers

continue

Stop looping if a specified condition occurs, and continues looping for next iteration

Identifiers

debugger

Stops the execution of JavaScript, and calls (if available) the debugging function

Identifiers

do ... while

Executes a block of statements and repeats the block while a condition is true

Identifiers

for

Marks a block of statements to be executed as long as a condition is true

Identifiers

for ... in

Marks a block of statements to be executed for each element of an object (or array)

Identifiers

function

Declares a function

Identifiers

if ... else ... else if

Marks a block of statements to be executed depending on a condition(s)

Identifiers

let

Declares a variable between brackets {}

Identifiers

 

LEARN CODING FOR FREE!

WEB DESIGN & DEVELOPMENT TIPS & ADVICE