Yet another example. Consider what it does before testing it.
reverseString.js
'use strict'; const reverseString = function (s) { if(s === "") return s return reverseString(s.substring(1)) + s[0] }
Provide the proper input parameter, and test it in your console.