There exists a special data structure called Array, to store ordered collections. The array index starts with 0. country = "England"; If we want to store different data types in the array, then we can create an array of type object so if I convert to this in type object then now we are able to store type integer. var my_array=["Dhoni","Sachin","Kohli","Rohit","Dhawan"]; Primitives data types are the types that define the type of a variable and has no methods, unlike objects. var concat_res = chars.concat(num); Let's take a look. for (i=0;i var array_result=my_array.includes("Sachin"); We have an array of integers, boolean values or strings.
The variable ‘a’ refers to a single value in memory.