mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-03-22 19:28:17 +08:00
32 lines
580 B
TypeScript
32 lines
580 B
TypeScript
// TODO: import the fib(n) function and the constant from './fibonacci.ts'
|
|
// import {fib}, FibConst from ...
|
|
|
|
// Some setup code for exercises
|
|
const obj1 = {
|
|
first: 'who',
|
|
second: 'what',
|
|
third: 'dunno',
|
|
left: 'why'
|
|
};
|
|
|
|
const obj2 = {
|
|
center: 'because',
|
|
pitcher: 'tomorrow',
|
|
catcher: 'today'
|
|
};
|
|
|
|
function makePromise() {
|
|
return Promise.resolve(5);
|
|
}
|
|
|
|
// Do the exercises here, outputting results using console.log()
|
|
// ...
|
|
console.log('hello world');
|
|
|
|
async function run() {
|
|
// Call the function you added for the async / await exercise here
|
|
// ...
|
|
}
|
|
|
|
run();
|