Photo by Brett Jordan on Unsplash

A new day, a new problem statement! Today we will create a comment section using pure Vanilla JavaScript and HTML. Many companies like Swiggy, Uber, Flipkart, Ola, Cred etc. use the machine coding rounds as their primary filters to eliminate candidates. And any machine coding round wouldn’t allow you to use dependencies or libraries such as React, Lodash, jQuery, Bootstrap, etc. Hence, you should solve some problems using Vanilla JavaScript and HTML to improve your speed, gain comfort around these lines and finally, ace this particular round.

As I always say, divide your problem into subsets, then address each subset…

A Ticket Booking Interface

Here I am with a new problem statement for us to go through with today. We are all working on highly complex designs in our day-to-day lives, but surprisingly, we tend to get stuck in building the simplest of designs when a clock is ticking on the side, a person is constantly staring at our code and everything we have always known suddenly decides to take a stroll in the black hole. 🤭

So that’s the problem. But the solution is what we are interested in here.

The solution is a quite well-known, commonly preached concept — PRACTICE!

Let’s follow…

By the end of this article, you will have a tic-tac-toe game just like the one above.

Let’s start with dividing the problem statement into subsets which we will then pick up one by one.

We need to create a tic-tac-toe game. Now, what are the different aspects of this game?

  1. It has a 3 x 3 board.
  2. There are 2 players.
  3. The game starts with an empty board.
  4. Each player can make only one move followed by the next player’s move.
  5. The player who has covered three subsequent blocks horizontally, vertically, or diagonally wins.

The above are the basic…

Photo by Tudor Baciu on Unsplash

Have you lately been caught off guard by the term “arrow functions”?

Or let’s say, you were aware of its existence but found yourself staring into oblivion when the discussion came down to the nitty-gritty aspects of it?

If your answer is “Been there, done that!”, then you have landed on the right page, mi amigo!️🚀

We, the developers of the world, are always eager to learn more. But simultaneously, we also lack the patience for endless page-hopping to learn something inside out.

Saloni Mishra

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store