Café Price Board
HTML / CSS
10 pts
Café Price Board
The page has three placeholders. In the <script> at the end of the body, use document.getElementById(…).textContent to fill them:
#name→ Asmara Café#tea→ Tea: 15 Nakfa#total→ the result of3 * 15(let JavaScript calculate it — do not type 45)
You may also add a console.log() line to check your work.
Checklist
- Show Asmara Café in
#name. - Show Tea: 15 Nakfa in
#tea. - Show the result of
3 * 15in#total, calculated by JavaScript. - Use
textContentfor the changes.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
