Skip to content

dci-fbw-wd-24-d07-a/spa-012-modules-exports-MelissaKebi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handling module exports

Most of the code for this website is complete, however it is missing the module exports.

Tasks

Task 1

  • Open the website in Live Server and view the Developer Tools console

  • Fix the <script> element in index.html so that it supports modules

  • Check the console again, you should get an error like this;

    Uncaught SyntaxError: The requested module './elements.js' does not provide an export named 'day' (at updater.js:1:10)

Task 2

In the following files, follow the paths specified in the import statements and use the export keyword to correctly export the required objects.

Expected Result

Expected result

About

dci-fbw-wd-24-d07-a-classroom-8f29a6-spa-012-modules-exports-spa-012-modules-exports created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.7%
  • HTML 31.6%
  • CSS 21.7%