I am sharing few questions which are most important in JavaScript. These are advanced concepts in JavaScript. You can refer my previous posts to go through them thoroughly.
- Hoisting concept
- OOPs in JavaScript
- Prototypal and classical model
- Inheritance
- Polymorphism
- Encapsulation (modeling)
- Closure
- What is prototype
- What is __proto__
- What is new in JavaScript
- What is bubbling
- Will the methods added later in prototype available in the object which is created earlier
- What is constructor in function prototype
- Scoping in JavaScript (function level vs block level)
- What is this
- How function work as constructor
- In how many ways we can declare functions
- Can you create a function which will add n numbers (n is not fixed)
- Number of way we can call the functions in JavaScript
- What is JSONP
- What is CORS
- Does inner function get access to the outer function "this"? If not how we can use "this" object inside inner function
- Why we use JQuery reference from CDN
- Is JavaScript multi-threaded or single threaded?
- How setTimeOut works in JavaScript? What is setInterval?
- What is Event Loop in JavaScript?
- How to create clone of a object?
- How to compare 2 objects are same or not?
- How to Swap 2 elements of an array by using Array functions available in JavaScript
- What is the difference between document.ready and window.load?
- How to check if one variable is of type Array?
- How can you empty an array in JavaScript? What will happen if you use arr.length = 0 ?
- Explain complete rendering of a page. Suppose you hit www.google.com, explain all the process step by step.
- How to remove one property from an Object in JavaScript
- What is instanceof operator in JavaScript?
- What are Function, Method, and Constructor in JavaScript? How to implements these in JavaScript?
- What is self invoking function in JavaScript and what is the use of it?
- What are the design pattern in JavaScript?
- What is singleton pattern? How we can achieve singleton pattern in JavaScript?
- In how many way you can create object in JavaScript?
- What is Publisher Subscriber architecture in JavaScript? How we can implement this?
- How to flatten an object in JavaScript?
- How to un-flatten object in JavaScript?
- How to prevent object modification in JavaScript? What is the difference between seal and freeze
- What is strict mode ("use strict") in JavaScript?
- Write a function to merge 2 objects dynamically in JavaScript.
Answers for all the above questions will be posted soon...