You have two methods: one method takes long time to run and the other completes in short time. You execute the long method first and after that you execute the short method. Which one will complete first. There is no setTimeout involved.
Senior Ui Developer Interview Questions
587 senior ui developer interview questions shared by candidates
What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example
Write a javascript function to draw a chessboard
Name some of the core features of ES6
find loop in linkedlist?
Create a polyfill for array reduce
Why JavaScript is used in browsers? Why not the languages Java, Python or Ruby?
Given an array & a value x, find if the array contains any 2 values whoes sum = x
What is the difference between these declarations? function a(){ } var a = function(){ }
Video chat code challenge was not. It was to create a spiral loop over a N size matrix. It has no real-world use cases, and doesn't show nearly enough depth of your abilities. I have not once in 10years of coding, ever needed anything even close to this. I self taught myself coding and have worked for Google, CNN, etc. It was a purely computer science question. I think they are missing out on good and diverse talent because they only target CS grads.
Viewing 1 - 10 interview questions