Salesforce Frontend Interview Questions

Web standards, JavaScript depth and accessibility.

Salesforce's UI platform is Lightning Web Components, a framework built directly on web standards: custom elements, shadow DOM, templates and ES modules. Frontend interviews therefore lean towards standard JavaScript and the browser platform more than towards React-specific APIs.

Candidates commonly describe a coding assessment, technical rounds on JavaScript and problem solving, a design discussion and a hiring manager round. Accessibility comes up often, since Salesforce sells to large enterprises and governments.

Questions
15, 5 with free answers
Interview rounds
4
Last reviewed
October 2026

Salesforce frontend interview process

The usual shape of the loop. A guide to what to prepare, not a promise of what you will get.

  1. 1

    Online assessment

    Coding problems, usually data structures and algorithms.

  2. 2

    Technical rounds

    JavaScript fundamentals, problem solving, and the DOM and event model.

  3. 3

    Frontend or design round

    Component design, the web platform and how you would structure a feature.

  4. 4

    Hiring manager

    Past work, collaboration and values.

What interviewers tend to look for

  • Core JavaScript: prototypes, modules, events and this.
  • The web platform itself, including the ideas behind web components.
  • Accessibility in every component you describe.
  • Security, since the products hold customer data.

Your Salesforce mock interview

15 questions. Type an answer under each one and an AI reviewer scores it and tells you what you missed. Stuck on one? Ask for a hint. A free account gets 3 AI replies a day.

Your mock interview

0 of 15 answered

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15

Answer a question and your score shows up here.

JavaScript

6 questions
  1. Question 1 of 15JavaScript

    Salesforce interviewer

    What is a closure? Give a practical use for one.

  2. Question 2 of 15JavaScript

    Salesforce interviewer

    How does prototypal inheritance work, and what does the class syntax add?

  3. Question 3 of 15JavaScript

    Salesforce interviewer

    How is the value of this decided? How do call, apply and bind differ?

  4. Question 4 of 15JavaScript

    Salesforce interviewer

    What is event delegation? Explain bubbling and capturing.

  5. Question 5 of 15JavaScript

    Salesforce interviewer

    How do ES modules differ from CommonJS, and why does tree shaking depend on ES modules?

  6. Question 6 of 15JavaScript

    Salesforce interviewer

    What is the difference between a shallow and a deep copy? How would you deep clone an object?

TypeScript

2 questions
  1. Question 7 of 15TypeScript

    Salesforce interviewer

    Explain any, unknown and never.

  2. Question 8 of 15TypeScript

    Salesforce interviewer

    What does it mean that TypeScript is structurally typed?

React

1 question
  1. Question 9 of 15React

    Salesforce interviewer

    What is useRef for? How do you pass a ref to a child component?

CSS

2 questions
  1. Question 10 of 15CSS

    Salesforce interviewer

    What are CSS custom properties, and how would you build a dark theme with them?

  2. Question 11 of 15CSS

    Salesforce interviewer

    What is the difference between a pseudo-class and a pseudo-element?

Browser, performance and system design

3 questions
  1. Question 12 of 15Browser, performance and system design

    Salesforce interviewer

    How do you make a web page accessible?

  2. Question 13 of 15Browser, performance and system design

    Salesforce interviewer

    What are XSS and CSRF, and how do you prevent them?

  3. Question 14 of 15Browser, performance and system design

    Salesforce interviewer

    What is CORS, and what is a preflight request?

Machine coding

1 question
  1. Question 15 of 15Machine coding

    Salesforce interviewer

    Build an accordion, or a tabs component.

Practise for Salesforce

Reading answers is the easy half. These problems run in the browser against real tests.

Other company guides

blur