Chubini
Chubini

Reputation: 115

Sublime Text3 console for JavaScript does not outputs 'return' value. How can I fix it? Thank a lot in advance

/*example*/

function funct(){
    return "just string";
}

funct();
/* output: */
[Finished in 0.1s]

Upvotes: 0

Views: 41

Answers (1)

MattDMo
MattDMo

Reputation: 102892

You need to explicitly print the return value. console.log(funct()); should work at a minimum.

Upvotes: 2

Related Questions