Frontend interview questions
JavaScript, TypeScript, React, CSS, browser performance and accessibility.
359 questions · 29 topics · 58 free answers
0 of 359 practised · 0 bookmarked · saved on this device
10 questions match
Browser, security and networking#1What is XSS and how do you prevent it?EasyConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#2What does a Content Security Policy do?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#3What is the same-origin policy?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#4What happens in a CORS preflight request?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#5What is the difference between HTTP/1.1 and HTTP/2 for the frontend?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#6Why is storing access tokens in localStorage risky?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#7What are Web Workers and what are their limits?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#8What is the difference between the capturing and bubbling phases of an event?MediumConceptBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#9You must render user-written rich text on a profile page. How do you do it safely?MediumScenarioBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
#10Your SPA shows stale content after a deploy because a service worker caches old files. What do you do?HardScenarioBrowser, security and networking Pro answer
This answer is part of Pro
10 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
Hunting for a Frontend role too? See open Frontend jobs.