var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
let array = ["item1", "item2"]
const array1 = ["eat", "sleep"];
var Names = ["Arbab","Ali","Ahsan"]
let myVar = ["1","2","3"];
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2
// Ways to create an array in javascript
const stuff = [element1, element2, ...]; // array literal notation
const stuff = new Array(element1, element2, ...); // array object notation
function createArray(input) {
var value = 0;
var array = [];
for (i=0;i<input;i++) {
value++;
array.push(value)
console.log(array)
}
}
createArray(12);
let words = [Hello, Hi, Greetings];
copyWithin(target,[5],[10])