Import/Export Mini Project

When exporting multiple arrays, you don't need to export them individually; you can export them all at once.

            
arrayobject1 [{ array1, array2, array3 }]
arrayobject2 [{ array4, array5, array6 }]
export { arrayobject1, arrayobject2 }
            
        

Then, when importing, you can import them like this:

            
import { arrayobject1, arrayobject2 } from './data.js'
            
        

You can use the 'as' keyword to rename imports if needed.

            
import { originalName as newName, originalTitle as newTitle } from './data.js'