Tonight I decided to try something different.
I’ll only get stronger if I guess, then test, then fix my form after the fact. Syntax takes a while to stick—but logic? Once you learn computer logic, the syntax becomes easier with each attempt.
I’m working through the Treehouse JavaScript course, and I came across a challenge that asked:
// 1. Create a multidimensional array to hold quiz questions and answers
// 2. Store the number of questions answered correctly
/*
3. Use a loop to cycle through each question
Present each question to the user
Compare the user's response to answer in the array
If the response matches the answer, the number of correctly
answered questions increments by 1
*/
// 4. Display the number of correct answers to the user
Instead of trying to perfect each step, I just thought through the logic and tried it out. This is what I came up with:
// 1. Create a multidimensional array to hold quiz questions and answers
const answers = [
[quiz('What is the capital of the world ?', 'Where does the sun shine the brightest?', 'Who has the tallest unicorn?')],
[ans('Alamo', 'Sunderland', 'New Unicorn Kingdom')]
];
// 2. Store the number of questions answered correctly
const correct = Count.(ans == true );
/*
3. Use a loop to cycle through each question
- Present each question to the user
- Compare the user's response to answer in the array
- If the response matches the answer, the number of correctly
answered questions increments by 1
*/
let i = 0;
for i < 3; {
quiz[i];
if answer == ans[i];
correct++;
};
i++;
// 4. Display the number of correct answers to the user
innerHtml = "`<h1>You got` ${correct} ` correct answers!</h1>`";
Of course, syntactically it’s not correct JavaScript, but that hadn’t been the point! I captured the logic of each step. I checked it afterward in ChatGPT to review the real syntax, and get some pointers on where I went wrong. Turns out I wasn’t very far off, and that was really encouraging. I knew what I WANTED to do, and that was important.
I learnt more this way, than trying to NOT fail.
If you (I) don’t learn anything from these blog entries, it is:
Don’t wait until you know how to do it perfectly. Start. Guess. Test. Fix. Grow.

