Solution Review: Refactor the Code
Learn the solution to the challenge given in the previous, "Refactor the Code" lesson.
We'll cover the following...
We'll cover the following...
Solution
The solution to the previous challenge is given below. Let’s have a look.
Explanation
We will cover each function one by one in the top to bottom order.
Let’s start with the function success().
success()
In arrow functions, the keywords function and return are not required. Hence, the code is more concise and the noise is ...