DEV Community

Cover image for Top 10 JavaScript Interview Questions

Top 10 JavaScript Interview Questions

Eftykhar Rahman on May 15, 2021

1 What are the data types? Supported by JavaScript we have primitive data types like string, boolean, number, bigint, null and undefined...
Collapse
 
coderd profile image
Info Comment hidden by post author - thread only accessible via 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

Collapse
 
cmuralisree profile image
Chittoji Murali Sree Krishna

Nice article, thank you for sharing 🙂

Collapse
 
iamraufu profile image
Eftykhar Rahman

You're welcome

Collapse
 
eissorcercode99 profile image
The EisSorcer

You rock for this. Thank You!

Collapse
 
iamraufu profile image
Eftykhar Rahman

You're welcome

Collapse
 
hima_khaitan profile image
Himanshu Khaitan

Useful!

Collapse
 
iamraufu profile image
Eftykhar Rahman

Thank You

Collapse
 
aagz profile image
Vladimir Chubar

Thank you.

Collapse
 
iamraufu profile image
Eftykhar Rahman

You're Welcome

Collapse
 
kaziminhaj profile image
KaziMinhaj

Great work. Take love

Collapse
 
iamraufu profile image
Eftykhar Rahman

Taken <3

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