NewThe Learning module is now liveSee what's new
avatar
User-6rvf0Oct 24, 2026

Roblox frontend phone screen, Piano Keys

Interview Experiences
roblox

Roblox frontend phone screen, Piano Keys

Didn't see many posts on the Roblox frontend track so writing this down. One coding round, around 45 min, plain HTML/CSS/JS only, no frameworks or libraries allowed.

You get a row of piano keys (C D E F G A) already styled, with a .key.active class that makes a key look pressed. Mouse down on a key and hold adds the class, release removes it. Same thing with the keyboard, hitting c d e f g a presses the matching key and letting go releases it. Multiple keys can be held at once, and every other key on the keyboard has to be ignored.

The part that kinda tripped me up was mouse and keyboard stepping on each other, like holding a key down on the keyboard and also clicking it. Also key repeat when you hold a physical key. I ended up tracking what's currently down instead of just toggling the class. Had a working version with a few minutes left but never got to edge cases like releasing the mouse outside the key.

Interviewer was friendly and let me talk through it, tbh that helped. Haven't heard back yet.

16582.6k

Replies (5)

avatar
User-8pch4Oct 24, 2026

was this the senior frontend track or regular SWE? my recruiter said first round is a UI component with state

59
avatar
vikramreddy98Oct 24, 2026

regular frontend I think, they just said vanilla JS only

52
avatar
User-3y4xyOct 24, 2026

no frameworks is rough if you've been on React for years lol

50
avatar
vikramreddy98Oct 25, 2026

yeah muscle memory kept wanting useState

50
avatar
User-ioii6Oct 24, 2026

did you write your own tests or just click around?

40
avatar
vikramreddy98Oct 25, 2026

just clicked around, didn't see any test setup

33
avatar
User-ako7kOct 25, 2026

good luck, hope you hear back soon

38
avatar
User-qw7c9Oct 24, 2026

had something close to this a while back, key repeat got me too

1
No more replies