You are viewing a single comment's thread. Return to all comments →
let a = s try{ let arr = s.split('').reverse() a = arr.join('') } catch (err){ console.log(err.message) } finally{ console.log(a) }
}
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 →
Using try, catch and finally
function reverseString(s) {
}