mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Step 2-01 updates
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user