https://github.com/ganqqwerty/123-Essential-JavaScript-Interview-Questions https://github.com/rohan-paul/Awesome-JavaScript-Interviews/tree/master
Polyfills
https://github.com/mohitkumartoshniwal/javascript-interview-preparation/tree/main/polyfills
30th Aug
deleteonly works if you delete property from objectdeletecan remove array elements and make them undefined:delete arr[3]- Function expressions are not hoisted
foo() // fails
var foo = function() {
// something
}- Singleton design pattern
- Deep clone and shallow clone implementation
- Detect undefined object property
- Use
inoperator
- Use
var obj = {
name: 'kk',
age: undefined
};
console.log("age" in obj); // true
console.log("aged" in obj); // false- check
NaNusingisNaN() - Object hasOwnProperty check if you want to iterate over the properties of an object using
inoperator - create a non-enumerable object property
- temporal dead zone
- pure function
- sparse and dense arrays
- Flux architecture in reactjs