Skip to main content

Array Data Type

 // CLASS TOPICS : ARRAY DATA TYPE  
   
 // myList = [10,15,20,-1];  
 // array is defined by using symbol []  
 // console.log(myList)  
   
   
   
 // how data is stored in a array  
 // myList = [1,2,3,4,5];  
 //[0index -> 1, 1-> 2,2 index -> 3 ]  
 // myValue = myList[1]  
 // using [] and entering a index b/w []. we can get the value which is stored at that particular index  
 // console.log(myValue);  
   

Comments