To use a module that has the “export” keyword, we have to import it into our code. To do this we use the “import” keyword…
import { Animal } from ‘./animal.js’;
This is placed at the top of the file and makes all of the items that have been exported from the animal.js file available. Notice the from part of the statement. This may change based upon the location of the js file being imported.
Happy Coding!
Clay Hess