fetch()
async/await
wk11.md
"OIM3690: GitHub settings"
for
while
for...of
forEach
for (let i = 0; i < 10; i++)
i
const nums = [10, 20, 30]; for (let i = 0; i < nums.length; i++) { let sum = 0; sum += nums[i]; }
for (const item of items)
for (let i = 0; ...)
Create random-word.html in your oim3690 repo.
random-word.html
oim3690
<button>
https://oim.108122.xyz/words/random
try/catch
Bonus: fetch 5 words in a row and display them as a list.
Create town-explorer.html. Build a mini app using the MA towns API:
town-explorer.html
https://oim.108122.xyz/mass
<input>
Bonus: find and display the town with the largest population.
Create message-board.html:
message-board.html
https://oim.108122.xyz/messages
X-Token
"alicealice"
Everything we've covered in JavaScript (no API/fetch):
querySelector
getElementById
textContent
innerHTML
addEventListener
onclick
let
const
if/else
push
pop
includes
indexOf
length
break
let x = "5" + 3
"53"
8
await
Next: Quiz 3 + JavaScript Image Processing