scrimba
Introduction to ES6+
Import & Export (Challenge)
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

Import & Export (Challenge)
AboutCommentsNotes
Import & Export (Challenge)
Expand for more info
instructions.md
run
preview
console
**Challenge**

Inside of the file data.js, create a function add, that will receive 2 numbers and return the sum of them.
Make sure to export this function.

- Import the function add, into the index.js file
- Create a variable result, that will hold the result of the function add when you call it and pass 2 numbers into it.
- print into the console the value of the variable result;
Console
/index.html
-2:52