Front End Interview Guide: Round 1 Machine Coding / Web Development
Frontend Interviews consists of 4 – 5 rounds depending on the year of experience. Here is what each round resembles:
- Machine Coding / Web Development
- UI Tech ( Javascript, HTML & CSS)
- Data Structures & Problem Solving
- System Design Round
- Hiring Manager
Sometimes 2 & 3 are combined into one round with more weightage on UI Tech. System Design is in focus for senior engineers and mostly excluded for freshers (0 – 3) with years of experience. You will have at least 3 – 5 rounds in any good tech company,
In this blog, I will be discussing the first round which is focused on Web Development skills.
Objective: Create a web app that can perform certain operations. Sometimes companies also provide the design that the website should look like, but the spotlight is always on functionality.
Sample Problem Statements:
1. Create a website for student records with client-side search, sort & pagination. Implement your own design, and make sure to use this endpoint for the data https://api.abcxyz.com. Bonus points for good design, optimized search (throttle, debounce), and modular code. No frameworks allowed, use Vanilla JS.
2. Create a rideshare website where users can request other users for sharing their rides. Use https://api.abcxyz.com?startTime=xx&startLocation=yy&endLocation for the list of active rides, start and end time, and owner details where startTime, startLocation & endLocation is provided by the user searching for rides. Stack – VanillaJS.
3. Develop a Carousel module with previous, next buttons, autoplay option, and freeze the carousel if hovered. Make sure all the values are configurable and passed externally. Use plain javascript to implement this.
4. Create a web app where users can see the free meeting rooms in the office. Input – start time, end time, floor. Suggest free slots & time modifications in case rooms are not free. Use React and Redux. Endpoint – https://api.abcxyz.com. Use GraphQl queries during API calls.
Some of the above questions are from big American tech companies and one of India’s largest startup. Any good developer should be able to do it. The only difficulty that one could face is duration.
Total Duration: 2 hrs or less.
As you can see that most of the good companies will ask you to implement the solution in plain javascript. So, prepare for it. Frameworks have made coding so easy that we sometimes forget how things work in the background.
How important is the CSS?
Good UI is always appreciated. Clean design, nice & subtle colors, and minor tweaks can sometimes create a great first impression. I think that has definitely helped me stand out from others. But the heart of the application is the functionality, without that it will end up in rejection. CSS is super important if the company has specifically mentioned that in the problem statement. In my experience, the main focus is on javascript.
How should I prepare for this round?
- Focus on Javascript more than frameworks.
- Learn native javascript array and object functions as they will help you modify data easily.
- Learn how to make API calls natively in javascript without using Axios or something similar. Read about fetch/XMLHttpRequest()
- How to optimize search ( debounce, throttle, etc)
- The practice is the key, try to develop one or two of above-discussed projects. I will suggest the first one.
- Improve CSS skills. Learning Flex will make things easy.
- Learn at least one framework(React/Angular/Vue) for that one odd interview. What I have observed is that small startups are more obsessed with frameworks than big tech. However, that is true for the interviews but for resumes to get shortlisted, frameworks are a big plus.
12 Comments
Mayur Chawda
Is it true that in m/c coding round, some companies ask to code in plain text editors instead of code editors?
Admin
No, any good company will never do that.
หวย
I have been browsing on-line greater than 3 hours these
days, but I never found any fascinating article like yours.
It is beautiful price sufficient for me. In my opinion, if all website owners and bloggers made good
content as you did, the net will probably be a lot more useful than ever before.
หวย
I don’t know whether it’s just me or if perhaps everyone else experiencing problems with
your blog. It appears like some of the written text on your
posts are running off the screen. Can someone
else please provide feedback and let me know if this is happening to them too?
This might be a problem with my browser because I’ve had this happen before.
Kudos
หวย
It is really a great and useful piece of information. I’m
happy that you simply shared this helpful information with us.
Please keep us informed like this. Thanks for sharing.
หวย
Nice blog here! Also your site loads up fast! What host are you using?
Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol
Atul
Gret blog,
Can you please share a few solutions for questions for refernce?
Admin
Sure, I’ll do it.
Abhay Pandey
Can we use CSS framework such as bootstrap or we have to use simple css only.
Nikscode
Simple CSS
irfan
can u plz give some good vanilla js projects ideas that includes the imp concept of vanilla js
for eg: fetch api, pagination etc.
plz give some ideas for practicing the core vanilla js concept
Nikscode
I’ll write a post.