String manipulation with Javascript (NodeJS)

javascript, node.js

Solution

it seems like requestToken may not be a string.

Try

requestToken = '' + requestToken;

and then requestToken.substring(13);

Problem

I'm trying to remove the first 13 characters of a string with this code: ``` requestToken = requestToken.substring(13); ``` However, I'm getting "`has no method substring`" error with NodeJS, the code above that mostly recommended in the Javascript forums does not work with NodeJS?

Original source