Tell us what’s happening:
I have solved this challenge very well but by removing strict mode from the code.
But I have not been able to understand Why with “use strict”; console did not show the concatenated arrays.
Is this because strict mode needs me to declare the parameters (arr1,arr2) inside the function?
I did try to put this ( let arr1; let arr2;) just to check if that works but it doesnt.
What could be the problem?
Your code so far
const myConcat = (arr1, arr2) => "use strict"; arr1.concat(arr2); // test your code console.log(myConcat([1, 2], [3, 4, 5]));
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.