JavaScript Simple tricks you need to know

Md Emran
May 5, 2021

String:

JavaScript has a special type of object called string and it is a collection of characters. The string is a primitive data type.

For example:

const name=”Imran”;

Here name is variable and Imran is dataTypes.

Number:

A number is a primitive object and it is used to manipulate and mainly represent the numbers. Such as , 1 ,-229,122 etc.

For example Syntex

Number(“1712”);

return the value is 1712;

Array:

Array are a special type of object which contain similar type of data.

For example:

var arra=[‘imran”,”sheikh”]

the output will show me two array

--

--

Md Emran
0 Followers

I am imran. From bangladesh and always try to understand new technology..