I want to pass an email address as a query string and as such I encode it just before sending it with this line of code:
var encoded = encodeURIComponent(email).replace('.' '%2E');
Apparently the period shouldn't matter but I keep getting "can't find module 'com' " if i run it that way (I'm coding on node and using express and using a res.render() call)
Don't really understand why in my case periods are causing issues but either way this is the exact error I get:
var encoded = encodeURIComponent(email).replace('.' '%2E');
^^^^^
SyntaxError: Unexpected string