JavaScript Developer Interview Questions for Freshers
JavaScript Developer 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() and apply() in JavaScript ?
- Advantage of using arrow functions ?
- What is webpack and babel ?
- How can we add an element at the start of a JavaScript array ?
- How to capitalise all the first letters of a given string ?
- What will be output of following code doit(); var doit = function (){ alert('x'); }
- Difference between pass by value and pass by reference ?
- What will be the output of following code:- for (var i= 0; i < 5; i++){ (function(i) { setTimeout( () => console.log(i)) })(i); }
- What is InstanceOf operator ?
- What is the use of constructor() in a class ?
- What will be the output of the following :console.log(4.toString());console.log(4.2.toString());console.log(4*undefined);
- How can we use javascript Set to remove duplicate elements of an array ?
- What is the data storage limit of a cookie ? and what is the maximum number of characters that can be stored in a cookie string ?
- How to make deep copy and shallow copy of objects ?
- What's the difference between for loop and for each loop ?
- What is a unary function ?
- What is JSON in javascript and what are its advantages ?
- What is JSON.stringify() ?
- What is JSON.parse() ?
Source:- JavaScript Developer Interview Questions for Freshers
For more questions and answers visit our website at Frontend Interview Questions
Comments
Post a Comment