• Saturday , 11 July 2020

JavaScript tutorial | session-2 | Variables and Data Types in JavaScript

Code Canyon

In this video tutorial we will study and understand the concept of Variables & Data Types in JavaScript.
Variables –
Following are some basic definitions of variables in a typical programming language context.
A variable provides us with a named storage that our programs can manipulate. It is the basic unit of storage in a program.
Variables are used to store information to be referenced & manipulated in a computer program.
In programming, a variable is a value that can be changed depending on the conditions or information being passed to the program.

Data Types –
Datatypes are basically type of data that can be used and manipulated in a program. For e.g. numbers(1, 2, 5,5), string(“hello Simple Snippets”, “JS”), boolean(true, false) etc.

JavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript.(as shown in the diagram above)
Primitive data type (string, number, boolean, null, undefined)
Non-primitive (reference) data type (objects, arrays)

Original source

3d Ocean

Related Posts

Leave A Comment

You must be logged in to post a comment.