I'm getting a 'SyntaxError: Unexpected end of input' when I try to enter the following in the repl
var someFunction = function(s) {
s = s.replace(/'/g, '');
}
However, s = s.replace(/'/g, '') by itself on a new line is OK. Am I doing something wrong?