Reputation: 115
/*example*/
function funct(){
return "just string";
}
funct();
/* output: */
[Finished in 0.1s]
Upvotes: 0
Views: 41
Reputation: 102892
You need to explicitly print the return value. console.log(funct());
should work at a minimum.
Upvotes: 2