Open MMortaga opened 5 years ago
https://github.com/GSG-G7/autocomplete-movie/blob/5c8f4e3ff03ef0d59964cd267fec6b1aaeb0139c/public/js/dom.js#L20
Yes, this is a good practice that you initialized first and used later, however a better practice would be to initialize array at the very beginning of the file just like the rest of your variables.
array
https://github.com/GSG-G7/autocomplete-movie/blob/5c8f4e3ff03ef0d59964cd267fec6b1aaeb0139c/public/js/dom.js#L20
Yes, this is a good practice that you initialized first and used later, however a better practice would be to initialize
array
at the very beginning of the file just like the rest of your variables.