This commit is contained in:
Dmitry Vasilev
2022-11-24 05:24:49 +08:00
parent 9a8e86a390
commit 6d99a4b3da
5 changed files with 26 additions and 16 deletions

View File

@@ -1,15 +0,0 @@
Object.assign(globalThis.document.body, {innerHTML: `
Index:
<input type='number' id='i'>
<br>
Fibonacci number:
<span id='result'></span>
`})
const fib = (i) => {
return i*10
}
globalThis.document.getElementById('i').addEventListener('change', e => {
Object.assign(globalThis.result, {innerText: fib(e.target.value)})
})

BIN
docs/images/async_calls.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 KiB

BIN
docs/images/entrypoint.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

BIN
docs/images/fib_ui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB