Exercise 1: Refactor the Code

Practice arrow functions by changing the non-arrow functions to arrow functions.

We'll cover the following

Problem statement

In this exercise, you are required to convert non-arrow functions to arrow functions to reduce the noise and clutter. Keep in mind the rules and limitations of arrow functions before implementing them.

Do-it-yourself challenge

Refactor the following code to make it concise and use arrow functions. The solution to this challenge is available in the next lesson. However, we want you to do it yourself first.

Get hands-on with 1200+ tech skills courses.