You are viewing a single comment's thread. Return to all comments →
function reverseString(s) { try { let arrayFormat = s.split(''); const reversedString = arrayFormat.reverse().join(''); console.log(reversedString) } catch(err) { console.log(err.message); console.log(s.toString()) } }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Try, Catch, and Finally
You are viewing a single comment's thread. Return to all comments →