
If you apply for a frontend role at Ramp, the first thing you’ll usually get is an email inviting you to a CodeSignal assessment, sometimes within minutes of applying. It gates everything else. Pass it and you move on to a recruiter call and live technical screens. Don’t, and you won’t hear back.
This guide covers what FrontendLead members have reported from the Ramp frontend assessment, what the tasks have in common, and working code for each pattern so you can practise the real thing instead of generic LeetCode.
Reports vary by role and date. Ramp uses different assessments for backend, new-grad and frontend roles. Everything below comes from frontend candidates. Confirm the format and time limit in your invite email.
What the assessment looks like
| What members reported | |
|---|---|
| Platform | CodeSignal, sent automatically after applying |
| Length | Usually 45 to 90 minutes (check your invite) |
| Shape | Progressive: later steps reuse something you found in an earlier step |
| Stack | Plain JavaScript and React; no CSS animation allowed in at least one task |
| Grading | Visible and hidden tests; working behaviour matters more than polish |
The key difference from most OAs is that it feels like a product puzzle, not an algorithms set. A typical flow from member reports:
- Capture the flag. Search the DOM of a provided page for a hidden value, often by walking the tree and matching on attributes or a specific nesting pattern.
- Decode and follow. The flag decodes to a URL. Fetch it, and sometimes follow further endpoints until you reach the data.
- Render it. Display the result with a typewriter effect in React, using JavaScript timers only and no CSS animation.
Another member got the DOM capture-the-flag step followed by “implement Wordle”. Same theme: discover something, then build a small interactive UI fast.
Pattern 1: Find the flag in the DOM
The usual instruction is something like “find every element matching this structure and read the value from a specific attribute or character.” The trap is that querySelectorAll gets you most of the way, but the matching rule has a structural condition (a parent, a sibling, a position) that a single selector can’t express. Walk the tree yourself.
// Example rule: find <i> elements inside <div data-tag="x"> inside <code>,
// read each one's `value` attribute, join in document order.
function captureFlag(root = document.body) {
const chars = [];
function walk(node, insideCode, insideTaggedDiv) {
if (node.nodeType !== Node.ELEMENT_NODE) return;
const tag = node.tagName.toLowerCase();
const nowInCode = insideCode || tag === 'code';
const nowInDiv =
insideTaggedDiv || (nowInCode && tag === 'div' && node.dataset.tag);
if (nowInDiv && tag === 'i' && node.hasAttribute('value')) {
chars.push(node.getAttribute('value'));
}
for (const child of node.children) walk(child, nowInCode, nowInDiv);
}
walk(root, false, false);
return chars.join('');
}
Why write it this way:
- Document order is preserved: depth-first, children left to right, which is the order
querySelectorAlluses. - Structural conditions are explicit: you can change “inside
<code>” to “direct child of” without fighting selector syntax. - It’s easy to debug: log
node.outerHTML.slice(0, 80)at the match point when the flag comes out wrong.
Before you write any code, spend two minutes in DevTools. Run $$('code div[data-tag] i').length in the console to sanity-check how many matches you expect.
Pattern 2: Decode the flag and follow the chain
Members describe a flag that has to be decoded (for example from base64 or a reversed string) into a URL, then fetched. Some variants chain: the response points to the next endpoint until an exit condition. The FrontendLead Ramp guide also mentions maze-style APIs where you follow nested IDs, with cycles and duplicates to watch for.
async function followChain(startUrl, { maxHops = 50 } = {}) {
const seen = new Set();
let url = startUrl;
for (let hop = 0; hop < maxHops; hop++) {
if (seen.has(url)) throw new Error(`Cycle detected at ${url}`);
seen.add(url);
const res = await fetch(url);
if (!res.ok) throw new Error(`HTTP ${res.status} for ${url}`);
const body = await res.json();
if (!body.next) return body; // exit condition: no further link
url = new URL(body.next, url).toString(); // resolve relative links
}
throw new Error('Too many hops');
}
// Decoding helpers you may need
const fromBase64 = (s) => atob(s);
const reverse = (s) => [...s].reverse().join('');
Things that cost people time:
- Relative URLs.
new URL(next, base)handles both relative and absolute. - Plain-text responses. Some endpoints return text, not JSON. Check
res.headers.get('content-type')or just callres.text()first while exploring. - Infinite loops. A
seenset and a hop cap mean one bad endpoint can’t hang your submission.
Pattern 3: Typewriter effect in React, no CSS
The ask: render a string one character at a time, using JavaScript only. Graders usually check that characters appear in order, that the effect finishes with the full string, and sometimes that it restarts correctly when the text changes.
import { useEffect, useState } from 'react';
export function Typewriter({ text, delay = 500 }) {
const [count, setCount] = useState(0);
// Restart when the text changes
useEffect(() => {
setCount(0);
}, [text]);
useEffect(() => {
if (count >= text.length) return;
const id = setTimeout(() => setCount((c) => c + 1), delay);
return () => clearTimeout(id); // no leaked timers on unmount or text change
}, [count, text, delay]);
return <div aria-live="polite">{text.slice(0, count)}</div>;
}
export default function App() {
const [flag, setFlag] = useState(null);
const [error, setError] = useState(null);
useEffect(() => {
let cancelled = false;
fetch(FLAG_URL)
.then((r) => r.text())
.then((t) => !cancelled && setFlag(t.trim()))
.catch((e) => !cancelled && setError(e.message));
return () => {
cancelled = true;
};
}, []);
if (error) return <p role="alert">Failed: {error}</p>;
if (flag === null) return <p>Loading...</p>;
return <Typewriter text={flag} />;
}
Details that separate a pass from a near miss:
- Slice, don’t append. Storing a count and rendering
text.slice(0, count)avoids the double-character bug you get from appending in an effect under React Strict Mode, where effects run twice in development. - Clean up timers. One
setTimeoutper step with cleanup, not asetIntervalyou forget to clear. - Handle loading and error states. Hidden tests often check the loading text before the fetch resolves.
- Read the spec for the exact rendering. Some variants ask for one list item per character, not a growing string. Match the markup they ask for.
Pattern 4: Wordle in the time limit
When the second step is “implement Wordle”, the evaluation logic is where people lose points: handling repeated letters correctly.
// Returns an array of 'correct' | 'present' | 'absent' for each letter of guess.
function scoreGuess(guess, answer) {
const result = Array(guess.length).fill('absent');
const remaining = {};
// Pass 1: exact matches, and count the unmatched answer letters
for (let i = 0; i < answer.length; i++) {
if (guess[i] === answer[i]) result[i] = 'correct';
else remaining[answer[i]] = (remaining[answer[i]] || 0) + 1;
}
// Pass 2: present-but-misplaced, limited by remaining counts
for (let i = 0; i < guess.length; i++) {
if (result[i] === 'correct') continue;
const ch = guess[i];
if (remaining[ch] > 0) {
result[i] = 'present';
remaining[ch]--;
}
}
return result;
}
scoreGuess('SPEED', 'ABIDE'); // ['absent','absent','present','absent','present']
The two-pass approach is the whole trick. A single pass marks a repeated letter as “present” twice when the answer only has one. For the UI, keep it minimal: a 6×5 grid driven by guesses state, a keydown listener for letters, Backspace and Enter, and the scoring function above. Make the interaction work before you style anything.
A 7-day prep plan
| Day | Focus |
|---|---|
| 1 | DOM traversal by hand: children, parentElement, nextElementSibling, dataset, getAttribute. Re-implement getElementsByClassName and querySelectorAll. |
| 2 | Fetch patterns: sequential chains, Promise.all, error and loading states, AbortController. |
| 3 | Timers in React: typewriter, countdown, stopwatch. Practise cleanup until it’s automatic. |
| 4 | Small games: Wordle, tic-tac-toe, Connect Four. Time-box each to 40 minutes. |
| 5 | A full mock: DOM search → decode → fetch → render, timed. |
| 6 | Review what broke in the mock. Write a snippets file: traversal, fetch chain, timer hook. |
| 7 | Rest, then a short warm-up on CodeSignal’s practice environment so the editor isn’t new on the day. |
Tips from candidates
- Get a working baseline first. Members consistently say the timer is tight. Polishing CSS before the behaviour works is the most common regret.
- Explore before coding. Fetch the URL in the console and look at the raw response before writing the component.
- Use what you’re fastest in. React is fine where it’s allowed; vanilla JS is fine for the DOM step.
- Don’t retake blindly. CodeSignal scores can sometimes be reused across companies within a window. Ask your recruiter before starting a fresh attempt.
What comes after the assessment
If you pass, members describe a recruiter call, then live screens that look like real product work: schedule UIs, formula-sheet style grids, and fetch-driven components. The full breakdown, including onsite questions and reported timelines, is in the Ramp Front End Interview Guide.
FAQ
Is the Ramp CodeSignal assessment the same for frontend and backend?
No. Backend and new-grad candidates report CodeSignal’s progressive “industry coding” format, usually an object-modelling problem across several levels. Frontend candidates report the DOM, fetch and React tasks described above.
Can I use React?
Members have used React for the rendering steps. The DOM search step is usually plain JavaScript against the provided page.
How long does it take to hear back?
Reports range from a few days to about a week after submitting. If you hear nothing after a week, follow up once with the recruiter.
Is it proctored?
CodeSignal assessments can be proctored or recorded depending on the company’s settings. Your invite email says which applies.
Practise the patterns: Traverse DOM · API retry · Tic-tac-toe · Connect Four in React. Share your own Ramp assessment experience anonymously on FrontendLead Discuss.
