You are viewing a single comment's thread. Return to all comments →
function reverseString(s) { try { s = s.split("").reverse().join(""); } catch (e) { console.log(e.message); // body of catch } finally { 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 →