EXERCISE 2: COUNTING THE NUMBER OF CHARACTERS YOU HATE

Today, we're going to count the number of characters you hate. It's a real thing, we swear.

  1. Make a list of all the characters you hate.
  2. Count the number of characters in each item on the list.
  3. Sum up the total number of characters.
  4. Repeat the exercise for each character you hate, because why not?

Let's start with the most hated character of all: the semicolon

Count the number of semicolons you've encountered today:

Don't forget to type your list of hated characters without the semicolon

body { background-color: #f2f2f2; font-family: 'Open Sans', sans-serif; } .container { max-width: 800px; margin: 40px auto; padding: 20px; border: 4px solid #000; } h1 { font-size: 24px; font-weight: bold; color: #000; margin-bottom: 10px; } h2 { font-size: 20px; font-weight: bold; color: #000; margin-bottom: 10px; } .instructions { padding: 20px; border: 4px solid #000; border-radius: 5px; background-color: #fff; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); } .exercise { padding: 10px; border: 4px solid #000; border-radius: 5px; background-color: #f7f7f7; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); } button { background-color: #000; color: #fff; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease; } button:hover { background-color: #000; color: #f7f7f7; } .stats { background-color: #fff; padding: 10px; border: 4px solid #000; border-radius: 5px; font-size: 18px; text-align: center; }