gistlib
index.tsx// Initializing an empty array let verticalVector = []; // Adding values to the array verticalVector.push(1); verticalVector.push(4); verticalVector.push(7); verticalVector.push(10); verticalVector.push(13); verticalVector.push(16); verticalVector.push(19); verticalVector.push(22); console.log(verticalVector); // Output: [1, 4, 7, 10, 13, 16, 19, 22] 356 chars15 lines
// Initializing an empty array let verticalVector = []; // Adding values to the array verticalVector.push(1); verticalVector.push(4); verticalVector.push(7); verticalVector.push(10); verticalVector.push(13); verticalVector.push(16); verticalVector.push(19); verticalVector.push(22); console.log(verticalVector); // Output: [1, 4, 7, 10, 13, 16, 19, 22]
gistlibby LogSnag