πŸš€ Webcoding 2 - Term 1

Course summary and exercises

🎯

About the Exercises

The exercises progress from easy to hard, building on concepts as you go. Remember: understanding JavaScript is the most important thing.

There are many ways to solve each exerciseβ€”there isn't just one single solution. The provided solution is just one of many possible approaches. If your code works and you understand the JavaScript you've written, that's what matters most! πŸš€

πŸ’‘

Using AI Assistance

You're welcome to use GPT or other AI tools for help, but only for specific questions, not for complete solutions. The best learning happens when you work through the exercises yourself!

Good questions to ask:

  • "How do I convert a string to a number in JavaScript?"
  • "What's the difference between forEach and map?"
  • "How can I check if an email contains an '@' symbol?"
  • "What does isNaN() do?"

Avoid asking: "Can you solve exercise 3 for me?" or "Write the complete code for this exercise"

Exercise 1
Variables and Output
Practice declaring variables and using console.log() and document.write() to display information.
Exercise 2
Temperature Converter
Build a temperature converter using conditionals, prompt(), and input validation.
Exercise 3
Calculator Functions
Create calculator functions with parameters, return values, and switch statements.
Exercise 4
Shopping List
Work with arrays, loops (for, while, forEach), and the filter method.
Exercise 5
Student Information
Practice with objects, nested objects, for...in loops, and object methods.
Exercise 6
User Profile - Input and Validation
Practice collecting user input with prompt(), type conversion, validation, and formatted output.
⭐ Bonus Exercise 7
Grade Calculator
Combine arrays, functions, conditionals, and loops to create a grade calculation system.
⭐ Bonus Exercise 8
Product Inventory System
Work with arrays of objects, functions, and array methods to manage inventory.
⭐ Bonus Exercise 9
Number Guessing Game
Create an interactive game using Math.random(), while loops, and user input.
⭐ Bonus Exercise 10
Personal Budget Tracker
Build a budget tracker with multiple functions working together on expense data.