Closed this issue 3 years ago · 1 comments
nasa-project/server/src/models/planets.model.js
Line 22 in 647fda4
The savePlanet function is declared in the same file, slightly further down. Functions in JavaScript are hoisted to the top of their scope so we can safely use them before they are declared.