Created on
Javascript Quiz For Intermediates
Remember that multiple-choice questions can be helpful for testing specific knowledge, but they may not fully assess a person's understanding and problem-solving skills in real-world scenarios. So, it's always a good idea to combine them with practical coding exercises and projects.
const arr = [1, 2, 3, 4, 5];
const result = arr.reduce((acc, curr) => acc + curr, 10);
console.log(result);
result=25 and you marked it as wrong and 20 as right
Indeed!
10 (initial acc) + 1 = 11
11 (new acc) + 2 = 13
13 (new acc) + 3 = 16
16 (new acc) + 4 = 20
20 (new acc) + 5 = 25
Can I have the source code of this app