tallenna pystyvektoriin x arvot 1, 4, 7, 10, 13, 16, 19, 22. in javascript

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 chars
15 lines

related categories

gistlibby LogSnag