0

What nonsense is this? (Что за чушь?)

In the test task shows the answer 24. Why? (В тестовом задании показывает ответ 24. Почему?) var arr = [1,2,3,4]; var x=1; for (j=0;j<arr.lenght;j++){ x*=arr[j]; } alert (x)

11th Nov 2019, 2:40 AM
Артур 1
3 odpowiedzi
0
Not sure why you would call it nonsense without even trying to work out every iteration like in Ace's comment.
13th Nov 2019, 11:27 PM
Girish
Girish - avatar