What will be the output of the following JavaScript code?
var values = [10, 20, 30, 40]; var result = values.reduceRight(function(x,y){ return (x + y); }); document.write("Result: " + result);
Result: 40
Result: 70
Result: 90
Result: 100
Correct Answer : D
What is true about Arrays?
What is the final value of array below?
const array = [1, 2, 3] const extension = [4, 5, 6] array = [...extension, ...array]