Js interview questions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

Js interview questions

2nd Aug 2018, 11:16 AM
Hethal
Hethal - avatar
8 Answers
+ 13
1.Explain event delegation 2.Explain how this works in JavaScript 3.Explain how prototypal inheritance works 4.What do you think of AMD vs CommonJS? 5.Explain why the following doesn't work as an IIFE: function foo(){ }(); . 6.What needs to be changed to properly make it an IIFE? 7.What's the difference between a variable that is: null , undefined or undeclared? 8.How would you go about checking for any of these states? 9.What is a closure, and how/why would you use one?
2nd Aug 2018, 11:26 AM
Hethal
Hethal - avatar
+ 10
10.Can you describe the main difference between a forEach loop and a .map() loop and why you would pick one versus the other? 11.What's a typical use case for anonymous functions? 12.How do you organize your code? (module pattern, classical inheritance?) 13.What's the difference between host objects and native objects? 14.Difference between: function Person(){} , var person = Person() , and var person = new Person() ? 15.What's the difference between .call and .apply ? 16.Explain Function.prototype.bind . 17.What's the difference between feature detection, feature inference, and using the UA string? 18.Explain Ajax in as much detail as possible. 19.What are the advantages and disadvantages of using Ajax? 20.Explain how JSONP works (and how it's not really Ajax). 21.Have you ever used JavaScript templating? 22.If so, what libraries have you used?
2nd Aug 2018, 11:37 AM
Hethal
Hethal - avatar
+ 8
BELOW ARE SOME POSSIBLE JS INTERVIEW QUESTIONS
2nd Aug 2018, 11:17 AM
Hethal
Hethal - avatar
+ 8
Hethal Awesome compilation of JS questions. Satyendra Singh yes sololearn material is a gentle start, to answer these questions you ll have to spend considerable effort in doing javascript projects and learning from books, articles, mozilla . i have been learning javascript from some time now and I cant answer them all :-) Dmitriy Chumikov answering all will be tough, but if you have any special question in mind, please reply, I ll make a code on that or refer a good article on that topic. btw visph did an Awesome compilation for these questions, check that out
19th Sep 2018, 8:17 AM
Morpheus
Morpheus - avatar
+ 7
Deeply answering here to ALL of this questions cannot be done and even by trying to answer very shortly, that doesn't fit into a SL Q&A answer ^^ So I've wrote it into this web code: https://code.sololearn.com/WNaE5944iwKF/?ref=app However, the book series "You don't know JS" is a very good source for most of all these deep subject, and don't forgot that Google is your friend as much as these questions are not intended to be a multi-choice questionnaire with simple yes/no answer but to test how deep is your skill/knowledge... so there are no really ready made answer to review before an interiew, but skill/knowledge to acquire instead mostly by practicing :P
22nd Aug 2018, 3:41 AM
visph
visph - avatar
+ 5
These things r not taught in SoloLearn...
20th Aug 2018, 5:48 AM
Satyendra Singh
Satyendra Singh - avatar
+ 2
can some one post answers for this questions? :)
21st Aug 2018, 9:36 PM
Dmitriy Chumikov
Dmitriy Chumikov - avatar