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