Work in HR? Unlock Free Profile

Google Software Development Engineer Interview Question

I interviewed in Mountain View, CA and was asked:
"Browsers running javascript is single threaded, how can we make AJAX calls in the backgroung?"
Tags: javascript ajax
Add Tags [?]

Part of a Software Development Engineer Interview Review - one of 3,035 Google Interview Reviews

Answers & Comments

of 2
We can use Javascript to make AJAX call in the background.
Ex:For Chating ,we need to update the content of chat after every one or three sec so we call the javascript function once and then we use javascript inbuild function Settimeout()
which call ajax in the background.
- Durlabh Kumar Jha on Jul 11, 2012
of 0
JavaScript is single threaded, but AJAX is *asynchronous* (by default), so it runs in a background. If we need another thread, we can use web workers.
- ciembor on Nov 27, 2012

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.