Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

HoistingDemo6

node v10.24.1
version: master
endpointsharetweet
console.log(square); // square is hoisted with an initial value undefined. console.log(square(5)); // Uncaught TypeError: square is not a function var square = function (n) { return n * n; }
Loading…

no comments

    sign in to comment