Step 2-01 updates

This commit is contained in:
Elizabeth Craig
2019-02-27 20:17:08 -08:00
parent fdceb93839
commit 61ae8afdf1
11 changed files with 126 additions and 81 deletions

View File

@@ -3,10 +3,10 @@ async function fetchSomething() {
return await response.text();
}
// Async functions always returns Promise
// Async functions always return a Promise
fetchSomething().then(text => {
console.log('hello ' + text);
});
// adding an export to turn this into a "module"
// adding an export turns this into a "module"
export default {};