scrimba
JS Deep Dive
Essential concepts
Challenge: Modules
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Challenge: Modules
Expand for more info
index.js
run
preview
console
// Challenge:
// Often in development you can reuse someone else's code.
// In this challenge we have a fake function that imitates getting user's
// data from an API and return you some details.
// Use modules to import getUser function and display the data on screen.

// Don't forget to call new App() in the end.

// Challenge stub code:

class App {
constructor() {
this.render();
}

render() {
document.getElementById('root').innerHTML = `
<div>getUser function results should go here</div>
`
}
}
Console
/index.html
-2:21