DEV Community

Discussion on: Top 10 JavaScript Interview Questions

Collapse
 
coderd profile image
Info Comment hidden by post author - thread only visible in this permalink

Nice article.

Few suggestions.

  • Question 1(Data Type), please add null and undefined in list of data type.
  • Question 5(Anonymous and Name function) , please add that name function can be accessed before declaration, but anonymous function are not.

Eg

Below name function code will work

hello();
function hello(){
console.log("Hello , will work");
}

But below anonymous function assigned to

variable will not work.

hello2();
var hello2 = function (){
console.log("Will not work");
}

Reason : Hoisting

Collapse
 
iamraufu profile image
Eftykhar Rahman

Thank you. Already Added

Some comments have been hidden by the post's author - find out more