You are viewing a single comment's thread. Return to all comments →
In javaScript :
function reverseString(s) { try{ var stringArray = s.split(''); stringArray.reverse(); stringArray = stringArray.join(''); console.log(stringArray); } catch(e){ console.log(e.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 →
In javaScript :