Javascript Interview Questions

1,680 javascript interview questions shared by candidates

- what is the meaning of “async” or “defer” attributes on a script element? - does “async” script delay page rendering? - How would you write a script to know how many times the window.addEventListener was called? A: override the original function - How would you know if a script/function was overridden? - How would you bypass detection of overridden native functions? - How would you pass information from client to server - A: make a connection (xhr, websocket, image/script elements src attributes, background-image css rules, etc…) What is CSP? A: content security policy
avatar

Javascript Engineer

Interviewed at Source Defense

4.3
Aug 14, 2021

- what is the meaning of “async” or “defer” attributes on a script element? - does “async” script delay page rendering? - How would you write a script to know how many times the window.addEventListener was called? A: override the original function - How would you know if a script/function was overridden? - How would you bypass detection of overridden native functions? - How would you pass information from client to server - A: make a connection (xhr, websocket, image/script elements src attributes, background-image css rules, etc…) What is CSP? A: content security policy

The second part of code challenge was very unexpected. Because they provide an algorithm that was wrote very badly. In the time of code challenge I can't focus on this code (I want to wrote my algorithm, I can't imagined why I must correct this code, I can write better code in a short time. So I consume a lot of time for nothing.
avatar

Javascript Software Engineer, Full Stack

Interviewed at Battlefy

3.9
Dec 17, 2014

The second part of code challenge was very unexpected. Because they provide an algorithm that was wrote very badly. In the time of code challenge I can't focus on this code (I want to wrote my algorithm, I can't imagined why I must correct this code, I can write better code in a short time. So I consume a lot of time for nothing.

Viewing 1441 - 1450 interview questions

Glassdoor has 1,680 interview questions and reports from Javascript interviews. Prepare for your interview. Get hired. Love your job.