Girl ScoutsSeniorGrades 9-10

Coding for Good 1: Coding Basics

Code your portrait and a quiz show

Use functions to draw a self-portrait in JavaScript, make it react with IF statements, learn the logic computers decide with, then build a quiz show about yourself that checks answers and keeps score. Covers all five steps of the Senior Coding for Good 1: Coding Basics badge.

Time
About two and a half hours, in two or three sittings
Steps
5 badge steps, 3 of them in Glassbox
You need
A computer or Chromebook with a mouse or trackpad. Printing is optional: every step works on screen. No account needed.

$5 for one scout: every step, the Glassbox activities that check the work, the printable lesson, and the certificate with a page of the scout's own work.

A portrait drawn in code, a smiling face with brown hair and green eyes, above a quiz that asks about the person.

Badge requirements: the 5 steps

  1. 1Use functions to create a self-portraitRead and quizA function is a named set of instructions you can use again and again. Programmers draw with them: one function for an eye, called twice, draws two eyes.
  2. 2Code a portraitIn GlassboxNow code it. Your portrait.js already has an example: drawFace(x, y) draws the face wherever you tell it. Add functions of your own for the other parts.
  3. 3Learn computer logicRead and quizComputers decide with true and false. Learn the logic every program uses: comparisons, AND, OR and NOT.
  4. 4Use IF statementsIn GlassboxAn IF statement lets a program choose. Make your portrait react: one face when the mouse is pressed, another when it is not.
  5. 5Create a quiz show with logicIn GlassboxPut it together: a quiz show about you, under your portrait. Visitors pick answers, IF statements check them, and the score counts up.
Glassbox: blocks on the left, the portrait.js file as blocks in the middle, the page with the portrait on the right.
Each step shows how Glassbox works, then opens it with a checklist that ticks as the work gets done.

Work on a computer. The apps need a keyboard and a bigger screen than a phone: a laptop, desktop or Chromebook. You can pay here and open the emailed link on the computer.

One scout

Unlock the kit, $5

  • All 5 steps, worked on screen, with a lesson you can print if you like paper
  • Glassbox activities that check the work as it is done
  • A numbered certificate with a page of the scout's own work: your portrait plan, your logic notes and your quiz questions

We email a link that opens the kit on any computer. No account needed. We keep the email only to send the kit and certificate links: privacy.

Have a discount code?
Leaders: unlock it for the whole troop

One payment and one code. Each scout types the code to unlock the kit on their own computer, and gets their own certificate at the end. Your pack page shows who has started and finished.

See a sample certificate (PDF) · Already paid? Find your link

Questions

What are the requirements for the Girl Scout Senior Coding for Good 1: Coding Basics badge?

The badge has 5 steps: 1. Use functions to create a self-portrait; 2. Code a portrait; 3. Learn computer logic; 4. Use IF statements; 5. Create a quiz show with logic. This kit covers all 5, with activities that check the work as it is done.

Is there a printable version?

Yes. Once unlocked, the whole lesson prints, one step at a time, for a meeting or a table. Printing is optional: every step also works on screen, and a sample certificate PDF is on this page.

What does a scout need?

A computer or Chromebook with a mouse or trackpad. Printing is optional: every step works on screen. No account needed. About two and a half hours, in two or three sittings.

Can a troop leader get it for the whole troop?

Yes. A troop pack is one payment and one code: up to 12 scouts for $20, or up to 30 scouts for $35. Each scout types the code on their own computer and gets their own certificate, and the leader's pack page shows who has started and finished.

Is this an official Girl Scouts product?

No. MYTEK Lab makes the kit, and Girl Scouts badge names and steps are used with permission of Girl Scouts of the USA. The troop leader awards the badge; the certificate shows the scout did the work, with a number the leader can check.

Girl Scouts badge names and steps are used with permission of Girl Scouts of the USA. This kit is made by MYTEK Lab; the badge is awarded by the troop.