Student starter code (30% baseline)
index.html- Main HTML pagescript.js- JavaScript logicstyles.css- Styling and layoutpackage.json- Dependenciessetup.sh- Setup scriptREADME.md- Instructions (below)๐ก Download the ZIP, extract it, and follow the instructions below to get started!
http.server)# If using VS Code:
# 1. Open this folder in VS Code
# 2. Install Live Server extension if not installed
# 3. Right-click on index.html โ "Open with Live Server"
# If using Python:
cd project-02-spelling-bee
python3 -m http.server 8000
# Then open: http://localhost:8000
# Or simply open index.html in your browser!
Location: script.js - Line ~58
Success Criteria:
Hint: Use the Web Speech API's SpeechSynthesisUtterance
Resources:
Location: script.js - Line ~86
Success Criteria:
handleCorrectAnswer() when spelling is righthandleIncorrectAnswer() when spelling is wrongHint: Use toLowerCase() for case-insensitive comparison
Location: script.js - Line ~106
Success Criteria:
Enhancement Ideas:
Location: script.js - Line ~126
Success Criteria:
Enhancement Ideas:
Location: script.js - Line ~143
Success Criteria:
Hint: Use JSON.stringify() and JSON.parse() for localStorage
Resources:
Add preset instruction buttons for different question types:
Integrate a dictionary API to show definitions:
Add a timer challenge:
Create a turn-based two-player mode:
Solution:
speechSynthesis.getVoices()Solution:
Solution:
shuffleArray() function is being calledusedWords array is being updatedSolution:
console.log() statements to track score changesBefore submitting, verify:
Good luck! Remember: Every expert coder started as a beginner. Embrace the learning process and enjoy building! ๐โจ