1.

Which of the following is one of the fundamental features of JavaScript?(a) Single-threaded(b) Multi-threaded(c) Both Single-threaded and Multi-threaded(d) Simple-threadedI got this question during a job interview.Query is from Web Workers topic in chapter Caching, Debugging and Animation of JavaScript

Answer»

The correct CHOICE is (a) Single-threaded

The best explanation: In computer programming, single-threading is the PROCESSING of ONE COMMAND at a time. One of the fundamental features of client-side JavaScript is that it is single-threaded: a browser will never RUN two event handlers at the same time, and it will never trigger a timer while an event handler is running.



Discussion

No Comment Found

Related InterviewSolutions