Top 100 JavaScript Interview Questions
JavaScript Interview Questions For Freshers What are the data types in JavaScript ? What is an object in JavaScript ? In how many ways we can define an object in JavaScript ? How to define a class in JavaScript ? What is defineProperty() method of javascript Object ? What is scope in JavaScript ? Explain variable hoisting ? Explain closures in javascript ? Difference between null and undefined ? Difference between == and === ? What are the new features in ES6 , which were not there in previous JavaScript version ? Explain time complexity ? What is space complexity ? What will be the output of the below code: let obj ={ a: 10, vir : function(){ x(); console.log(this.a); function x(){ console.log(this.a) } } } obj.vir(); What will be the output of the below code for (var i= 0; i < 5; i++){ setTimeout(() => console.log(i)); } What will be the output of the below code :- var a = 90; doit(); function doit(){ console.log(a); var a = 10; } Explain call(), bind(...