Tell us what’s happening:
whats the problem?
Your code so far
let myArray = [1, 2, 3];
let arraySum = myArray.reduce(previous, current) => previous + current);
console.log(`Sum of array values is: ${arraySum}`);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.
Challenge: Catch Unclosed Parentheses, Brackets, Braces and Quotes
Link to the challenge: