Junior Front End Engineer Interview Questions

52 junior front end engineer interview questions shared by candidates

Given a long text (string) and a maximum number of characters that can fit in the screen (int), write a function that adds newline characters (\n) to split the text to fit on the screen without breaking words in the middle. You can assume characters are monospaced and that the screen’s maximum width is passed in to your application as an argument called maxCharacters.
avatar

Junior Front End Engineer

Interviewed at Noom

2.6
Oct 1, 2019

Given a long text (string) and a maximum number of characters that can fit in the screen (int), write a function that adds newline characters (\n) to split the text to fit on the screen without breaking words in the middle. You can assume characters are monospaced and that the screen’s maximum width is passed in to your application as an argument called maxCharacters.

Viewing 11 - 20 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 52 interview questions and reports from Junior front end engineer interviews. Prepare for your interview. Get hired. Love your job.