javascript increase numbers to array code example
Example: increment elements in array typescript
let numbers: number[] = [1, 2, 3, 4, 5];
function addNumbers(i: number): number {
let sum: number = (numbers[i] += 1);
return sum;
}
let add: number = addNumbers(2);
console.log(add);