Member-only story
Microsoft Frontend Interview questions with expert answers

Microsoft is considered one of the Big Five American information technology companies alongside Alphabet, Amazon, Apple, and Meta. In April 2019, Microsoft reached a trillion-dollar market cap, becoming the third public U.S. company valued at over $1 trillion and reaching a revenue of US$245.1 billion in 2024.
So if that got you excited let’s cover a few questions asked in the frontend interview round of Microsoft.
Q1. Search page which highlights search queries in results
Problem statement:
Create a full-page search using only Javascript, HTML, and CSS. Main functionalities to include:
- The top bar contains an input text box, allowing the user to enter the search string and call to fetch the data.
- The main layout contains paginated search results.
- Each search result includes a snippet/preview of the search object (~500 characters), with the search string highlighted.
Approach
Solving such problems requires a proper approach that breaks the problem into smaller parts.
So let’s first list down our approach: