DEV Community

Discussion on: A Step-By-Step Guide to Create your First API with Node and Express

Collapse
 
razbakov profile image
Aleksey Razbakov

It should be const because Array is an object and reference to the object is not changed.
Read more here