Open Interview with mazipan
This article will reveal some of my secret (*not really secret) questions I will ask to the candidate that applying for Frontend Engineer. Iโve been become an Inteviewer for many interview sessions when I was in a full-time job for some e-commerce companies in Indonesia.
โ๏ธ Quick Q&A
-
โ Will I always ask all the questions in this article?: Can be yes, or no. Depend on the situation. One question can be followed up with other questions to make it clearer. As an interviewer, I just prepare my own sets of questions that can be randomly asked when needed. So you may donโt need to be able to answer all the questions.
-
โ Why not include the answers?: Because I donโt like a text-book explanation. I will capture how understand you are with the topics, usually by asking some use cases or adding follow up questions. So do not just memorize the answer, understand it, so you can explain it with your own words.
๐งโ๐ซ Common Interview Processes for Software Engineer
Before we start with listing down the questions, itโs better for us to understand the common processes or workflows that commonly being adopted by many tech companies.
If you are Indonesian citizen, you can watch the video from Gogo about the interview process for software engineer. But if you are not understand the Indonesian language, you can just direct to the slides presentation here.
The processes are vary one to another, but in general it will be quite the same. Some companies will split it into different and multiple interview session, while the others may doing a single interview session that cover all the things.
๐ป Live Coding
This part usually will be executed first. Also by me. For frontend position, I will usually doing a live coding for these two topics:
- โญ๏ธ HTML & CSS: Asking to create some basic layouting, just to make sure the candidate at least can coding the HTML and CSS in raw.
- โญ๏ธ Data Structure / JavaScript: Itโs common live coding to solving some data structure related questions.
You can check the video from Gogo for Interview Coding (In Indonesian Language) and Sample mock interview. You can also get the slides here
๐ My common questions
Here the list of questions those I may asked when doing an Interview session:
๐ Web Fundamental
- ๐ฉ Explain and spot the difference about load a JavaScript file via HTML by only using
<script>
tag, and with<script async>
tag, and with the<script defer>
tag! - ๐ฉ Explain about attribute
rel=noopener
and/orrel=noreferrer
that usually included in thea
tag (<a href="..." rel="noopener noreferrer">
)! - ๐ฉ Can you give me some examples of Semantic HTML Tag as a replacement for an ordinary
div
tag? - ๐ฉ Explain the difference of
Cookie
,Local Storage
andSession Storage
! When we should use it? Explain the trade-off when using each of them! - ๐ฉ What is
prefetch
? What ispreload
? Give an example or use case when we should use it? When we should avoid to use it? - ๐ฉ How to make the Browser caching the static resources (Image, JS, CSS, etc) have been requested before?
- ๐ฉ What is
CDN
? What is the role ofCDN
in term of serving our website? Why and when we should useCDN
? What type of resources those better to be served viaCDN
? - ๐ฉ How if you are being asked to create HTML layout but have a very different design for the Mobile and Desktop? What is the approach or strategy?
- ๐ฉ Explain about
CORS
(Cross-Origin Resource Sharing)! When and why it happens? How we solve the problem?
๐ก JS Fundamental
- ๐ฉ Whatโs difference of
.forEach
and.map
? - ๐ฉ Whatโs difference of
debounce
andthrottle
? Can you elaborate your answer by explaining the use case ofdebounce
andthrottle
? - ๐ฉ Explain about Closure in JavaScript.
โ๏ธ Frameworks (React)
- ๐ฉ Explain about semantic versioning!
- ๐ฉ Spot the difference of
dependencies
,devDependencies
andpeerDependencies
in thepackage.json
! - ๐ฉ Explain Rule of Hooks in React.js!
- ๐ฉ Explain the Array Dependencies in the
useEffect
! - ๐ฉ Explain about Server-Side Render, Client-Side Render and Static Site Generated! When we should use it? Whatโs the trade-off from each options?
- ๐ฉ Explain the difference of
Rest API
andGraphQL
! Tell me the pros and cons! When we should useRest API
? When we should useGraphQL
instead? - ๐ฉ How to create a lazy load in the image component without 3rd party library?
- ๐ฉ Whatโs the minimum things you can do as a Frontend Engineer to support the
SEO
of your site? - ๐ฉ How do you test your project?
๐ซ Web Performance
- ๐ฉ Explain about Core Web Vitals!
- ๐ฉ Explain the difference of Data Field dan Data Lab in the context of web performance!
- ๐ฉ What things can decrease the
CLS
(Cumulative Layout Shift) score? How to increase the score? - ๐ฉ What things can decrease the
LCP
(Largest Contentful Paint) score? How to increase the score? - ๐ฉ How to monitor the web performance? Do you use the RUM (Realtime User Monitoring)?
๐ System Design
- ๐ฉ How to improve the time consumed by th engineer in fisnihing the task, from development to the production?
- ๐ฉ How to design the application that showing the Live Comments from the users?
๐ Personal tips
Different interviewer may have different set of questions, but at least this can be your own benchmark and for you to prepare your self before the interview session. If you still stuck when trying to explain things in this article, maybe you still need to read more references.
If needed, write it down your answers and manage it word by word so it will be easier to understand. You can gain more confidence when mastering the things that being asked and you already prepare for that.
Know the text-book answer maybe not enough, prepare for the following up questions also, understand the use cases, and the trade-offs.
๐คบ So, when we do an interview?
Cover photo from Tima Miroshnichenko on Pexels