Unwanted Statement found

there is no need of console.log(sum) at line 197. The motive of code is to just print array not the sumOfArray
pull/875/head
ASHWIN MALI 2 years ago committed by GitHub
parent 55d8e3dbc0
commit c2c699997a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,7 +194,7 @@ arr.forEach((element, index, arr) => console.log(index, element, arr))
let sum = 0;
const numbers = [1, 2, 3, 4, 5];
numbers.forEach(num => console.log(num))
console.log(sum)
```
```sh

Loading…
Cancel
Save