javascript - Value after hoisting? -
question: value of bar after hoisted?
var bar = function() { return 3; };
i think: function expression. i'm wrong?
why not try it?
var bar = function() { return 3; }; console.log(bar);
output,
function () { return 3; }
Comments
Post a Comment