When I saw there were limited frontend interview experiences, I decided to share my recent frontend phone interview questions and also ask for advice!
I had two rounds of phone interviews, and the questions were not typical software engineer interview questions.
-
Given a segment of HTML:
Write agetByClassName
function. The input should bevar getByClassName = function(root, className)
, and it should return all nodes that match the className.
The follow-up question was to write agetByClassHierarchy
function. The inputgetByClassHierarchy(root, "a>d")
should return the matching nodes. -
Given a segment of HTML:
The following content requires a score higher than 188 for viewing.
Complete the loadTemplate
and render
functions. That’s it!