How do you sync different ajax request in Angular?
Lead Front End Developer Interview Questions
16,903 lead front end developer interview questions shared by candidates
Q:What would you do is a customer came in asking for a hammer that was not in-store?
5. var x; (function test() { console.log('x --'+ x); })(); //this is self invoking so print undefine because x is not assigned any value yet var y = function() { console.log('In y' + x); //function is not called from anywhere so this wont execute } another(); //this will call function another written below var x = 10; console.log(x); //will print 10 because x is assigned value 10 function another() { console.log(x); //will print undefine because x is not assigned any value yet }
3. What will be the console.log statements print const obj = { name: 'Billy', sing: function () { this.age = "20" console.log('a' , this); var anotherFunction = function() { this.age = "30" console.log('b', this); } anotherFunction(); } } obj.sing(); //first console will print properties of obj(name, age and sing) and second will print window object
6. largest path from root in a tree
1) Apply Promise all in JavaScript by Hand 2) Difference between localStorage and cookies etc.
I don't remember the exact question. To prepare, I'd recommend to brush up on vanilla javascript.
write your code to send a message, example how comments appear in facebook when you write
Text book type question about semantic html, wasn't really hard but it was the type of question where you pause and try to remember the phrasing of a concept you've absorbed rather than described.
Same question, find the intersecting values of 2 arrays but handle duplicate values. This time "handle" means include duplicates in the output.
Viewing 2741 - 2750 interview questions