Here Are 6 Front-End Challenges to Code

Are you able to code these front-end challenges?

Indrek Lasn
Oct 23, 2019 · 5 min read
Image for post
Image for post
Photo by Olav Ahrens Røtne on Unsplash

Front-end development is stressful and hard — but with practice, one can master the craft. If you’re willing to put the work and effort in, you’ll be able to become a proficient problem solver in the front-end development landscape. One effective way to become a great front-end developer is to simply build and solve as many challenges as one can.

Here are six challenges you can start solving today to become a master of front-end development. Without further ado, here are the six challenges you probably should code.

1. Credit Card Form

A fantastic credit card form with smooth and sweet microinteractions. Includes number formatting, validation, and automatic card-type detection. It’s built with Vue.js and also fully responsive.

See it live here.

Image for post
Image for post
credit-card-form —

What you’ll learn by solving the challenge

  • Form handling and validation
  • Handling event listeners (e.g., when the fields change, it’ll print the values on the credit card)
  • Understanding how to display and position elements on the page, especially the credit card overlapping the form

2. Bar Chart From Scratch

A bar chart or bar graph is a chart or graph that presents categorical data with rectangular bars with heights or lengths proportional to the values they represent.

The bars can be plotted vertically or horizontally. A vertical bar chart is sometimes called a line graph.

Image for post
Image for post

What you’ll learn by solving the challenge

  • Display data in a structured and easily understandable way
  • Optional: Learn how to use the <canvas> element and how to draw elements with it

You can find the data for the world population by year here.

3. Twitter Heart Animation

Back in 2016, Twitter introduced this awesome animation for their tweet likes. As of 2019, it still looks rad, so why not create one yourself?

Image for post
Image for post
Twitter tweet like animation

What you’ll learn by solving the challenge

  • How the keyframes CSS attribute works
  • How to manipulate and animate HTML elements
  • How to combine JavaScript, HTML, and CSS

4. GitHub Repositories With Search Functionality

Nothing out of the world here — GitHub repositories are basically just a glorified list.

The task is to display the repositories and allow the user to filter through the repositories. Use the official GitHub API to fetch repositories per user.

Image for post
Image for post
GitHub profile page —

What you’ll learn by solving the challenge

5. Reddit-Style Chat Rooms

Chat rooms are a popular way of communicating thanks to being easy and fun to use. But what actually powers modern-day chat rooms? WebSockets!

Image for post
Image for post

What you’ll learn by solving the challenge

  • How to use WebSockets and real-time communication and data updates
  • How user permissions levels work (e.g, the owner of a chat channel has the role of admin, while others in the room have the role of user)
  • Form validation and handling — remember, the chat box for sending a message is an input element
  • How to create and join different chat rooms
  • Direct messages and how they work. Users can communicate with other users privately. Essentially, you’ll be establishing a WebSocket connection between two users.

6. Stripe-Style Navigation

What’s unique about this navigation is the popover container morphs to fit the content. There’s an elegance to this transition versus the traditional behavior of opening and closing a new popover entirely.

Image for post
Image for post
Stripe navigation

What you’ll learn by solving the challenge

  • How to combine CSS animations with transitions
  • Cross-fading content and applying the active class for the element being hovered

Try doing it first yourself, but if you need help, check out this post for a step-by-step guide.


Thanks for reading — hope you found something interesting to code.

Remember, there are no shortcuts when it comes to getting good at coding. Start putting the work in, and boost your coding skills by building as much as you can. If you didn’t find anything interesting, check the post below for even more ideas.

Better Programming

Advice for programmers.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

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