JavaScript basics Interview questions with answers.

JavaScript Interview Questions and Answers Part:- 1


Question 1 :- Why do we call JavaScript as dynamic language

Question 2 :- how does JavaScript determine data types ?

Question 3 :- What is typeof ?

Question 4 :- How to check data type in JavaScript ?

Question 5 :- What are different datatypes in JavaScript ?

Question 6 :- Explain Undefined Data types ?

Question 7 :- What is Null ?

Question 8 :- Differentiate between Null and Undefined ?

Question 9 :- Explain Hoisting ?

Question 10 :- Are JavaScript initialization hoisted ?

Question 11 :- What are global variables ?

Question 12 :- What are the issues with Global variables ?

Question 13 :- What happens when you declare variable with out VAR ?

Question 14 :- What is Use Strict ?

Question 15 :- How to force developers to use Var keyword ?

Question 16 :- How can we handle Global Variables ?

Question 17 :- How can we avoid Global variables ?

Question 18 :- What are Closures ?

Question 19 :- Why do we need Closures ?

Question 20 :- Explain IIFE ?

Question 21 :- What is the use of IIFE ?

Question 22 :- What is name collision in global scope ?

Question 23 :- IIFE vs Normal Function

Question 24 :- What are design patterns ?

Question 25 :- Which is the most used design pattern

Question 26 :- What is module Pattern and revealing module pattern ?

Question 27 :- How man ways are there to create JavaScript objects ?

Question 28 :- How can we do inheritance in JavaScript ?

Question 29 :- What is prototype in JavaScript ?

Question 30 :-Explain Prototype chaining ?

Question 31 :- What is Let Keyword ?

Question 32 :- Are Let variables hoisted ?

Question 33 :- Explain Temporal Dead Zone ?

Question 34 :- Let vs Var

Question 35 :- String Concatenation and Arithmetic puzzle

Complete and Continue