Does concatenating strings using a for loop start with ‘undefined’ in javascript?
Where is undefined coming from? I thought I initialised the string correctly. (tried using debugger but can't figure out the issue) I've tried using concat() method. I've tried +=. Everything results in "undefined" Why? const reverseString = function(string) { let…