InterviewDB
Experience
String Template Parser: Parse and Render Templates with Variable Substitution and Conditionals
phone
Interview Experience
Problem Implement a minimal string template engine. Templates may contain: Variable substitution: {{variable_name}} Conditionals: {{#if condition}}...{{/if}} Loops: {{#each items}}...{{item}}...{{/each}} Follow-ups How do you handle nested {{#if}} inside {{#each}}? Describe your parsing approach (recursive descent vs regex). What happens if context is missing a key referenced in the template? Silent empty string or error? Sanitize output against XSS: if name = "<script>alert(1)</script>", what s…
Full Details
🔒
Unlock all Figma questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a figma interview during the phone round.
It covers the following topics: Strings, Phone, Recursion, Coding, Onsite .
More Figma Interview Questions
LeetCode
Apollo.io | Senior Frontend Engineer | L5
1p3a
Figma Machine Learning Engineering Fulltime Onsite Interview Experience
InterviewDB
Design Elements Intersection: Find Overlapping Rectangles and Compute Intersection Areas
InterviewDB
Implement 2D Canvas: Build a Drawing Surface with Shape Rendering and Hit Testing
InterviewDB
Keyword Highlighting: Highlight Multiple Keywords in Text While Handling Overlapping Spans