mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
making some major improvements on the exercise and demo pages
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100vh;
|
||||
height: 100vh;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../../assets/step.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<body class="ms-Fabric">
|
||||
<div id="markdownReadme"></div>
|
||||
<div id="app">
|
||||
Nothing to show here, just look at your console window for output. Hit F12 to open console window.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
const app = document.getElementById('app');
|
||||
const textarea = document.createElement('textarea');
|
||||
textarea.setAttribute('readonly', 'true');
|
||||
app.appendChild(textarea);
|
||||
function log(results: string) {
|
||||
textarea.innerText += results;
|
||||
}
|
||||
|
||||
// Some setup code for exercises
|
||||
const obj1 = {
|
||||
first: 'who',
|
||||
@@ -24,11 +16,13 @@ function makePromise() {
|
||||
return Promise.resolve(5);
|
||||
}
|
||||
|
||||
// Do the exercises here, output your results with "log()" function
|
||||
// Do the exercises here, output your results with "console.log()" function
|
||||
// ...
|
||||
log('hello world');
|
||||
console.log('hello world');
|
||||
|
||||
(async () => {
|
||||
async function run() {
|
||||
// Place your code for the async / await exercise here
|
||||
// ...
|
||||
})();
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user