Declaring Variables in JavaScript.
Paul C. Ishaili

Paul C. Ishaili @mrpaulishaili

About: CEO, ²⁴/⁷ Technology & Business Coach.

Location:
Abuja, Nigeria
Joined:
Sep 29, 2021

Declaring Variables in JavaScript.

Publish Date: Mar 29 '22
7 0

There are three ways to declaring Variables in JavaScript.

Variables are like containers that hold a set of value(s), be it string, boolean, array, numbers or objects.

Because JavaScript is a loosely-typed programming language, specifying the value to be declared in a variable is not needed.

The three ways to declare variables in JavaScript are: var, let and const.

  • const is used to declare variables that their values are not likely to change during the code runtime.

  • let and var, with some signifiant difference, are used to declare variables whose values are very likely to change over the course of a code runtime.

Comments 0 total

    Add comment