You are viewing a single comment's thread. Return to all comments →
function reverseString(s) { try { const reversedString = s .split("") .map((char) => { return char.toLowerCase().trim() }) .reverse() console.log(reversedString.join("")) } catch (error) { console.log(error.message) console.log(s) } }
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 →