JavaScript variable hoisting quiz


Test your JavaScript variable hoisting skill by taking this quiz.

What will be the value of a?

var a = 7; test();

What will be the output of variable 'technology'?

console.log(technology);

What is the value of 'fruit'?

console.log(fruit);

What will be the output of the following code?

var sayHai = function(){ console.log("Hai"); }

What is the output of the below code?

'use strict'; console.log(number); let number = 56;

What will be the output of the below code?

'use strict'; console.log(typeof number);

What will be the value of variable 'tree'?

console.log(tree);

Tags: ,

You may also like

Sponsored

Follow me

Popular posts