Counting Tokens

Hi,

I want to count tokens using VS Code, but the output only returns ‘tokens’

Below is the results, the index.js and the package.json

Why it does not return Uin32Array and number of tokens ?

Hello

Please have a closer look at the content of console.log() method ?

Cheers.

1 Like

You have used

console.log('tokens'); // tokens in this case is a string 

use

console.log(tokens); // tokens in this case is a variable 
1 Like