Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/create-an-export-fallback-with-export-default.english.md
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
committed by
Kristofer Koishigawa
parent
2e49aa02df
commit
50b45b9379
@ -8,7 +8,7 @@ challengeType: 1
|
||||
<section id='description'>
|
||||
In the <code>export</code> lesson, you learned about the syntax referred to as a <dfn>named export</dfn>. This allowed you to make multiple functions and variables available for use in other files.
|
||||
There is another <code>export</code> syntax you need to know, known as <dfn>export default</dfn>. Usually you will use this syntax if only one value is being exported from a file. It is also used to create a fallback value for a file or module.
|
||||
Here is a couple examples using <code>export default</code>:
|
||||
Below are examples using <code>export default</code>:
|
||||
|
||||
```js
|
||||
// named function
|
||||
|
Reference in New Issue
Block a user