|
|
|
|
|
by codedokode
2977 days ago
|
|
By the way, I don't think it is a good idea to write a function as a constant. Please compare this function getDate(date) { .. }
to this: const getDate = (date) => { ... }
The first version is more readable. We instantly see that it is a function and in a second case it looks like a constant at first. Also without the equal and arrow sign it looks simpler. |
|