Another Example

Yet another example. Consider what it does before testing it.

Example 7.4. 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.