Arra []
Array is nothing but we can store one or multiple values in one variable .
spacifically in javascript we can store " Hetrogeneous" values also
Hetrogeneous Means you can store any kind of data in the array like number , string , boolean , in the same array
Ex: var arr = [2,(num) "hello"(string), 123.5(decimal num), true(boolean), ramesh kumr(object)];
when we create a array , javascript will change that array into object then it supply to that referencre variable
Beacause we want to do some Operations on the array , we dont waste our time to write code to that small operation , like insert,pop,delete.
To do all this things , always developers or programmers will waste there time.
so javascript will provide some methods to us
['a','b','c'] --> { 0:'a', 1:'b, 2:'c' }
Array Medthods
push(x) pop() shift() unshift(x) Filter Concate join() for each map reduce filter Indexof find splice sort tostring
Filter var arr = [20,34,16,53,65,12,32,11] // var arr1= arr.filter() function arr3 (age) { return age> 16; } var result = age () console.log(result);