The return statement doesn't print anything in the repl's console, while it does in my browser's console. So, what's wrong with the repl's console?
Check script.js, thanks!
@abhiraj No. Your browser's console is equipped with debugging capabilities, which catch return statements. So console.log would work on both.