Learning kitGrades 6-8

Computer science: functions and arguments

Code a meme maker

Call functions with arguments to change a face and its captions, learn how memes spread and how to keep them kind, plan a meme function in pseudocode, write a drawMeme function anyone can reuse, then use it twice and share your meme. Ages 11 to 14 or grades 6 to 8.

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

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

A finished meme made in code: a cartoon face with a caption above and below it.

The 5 steps

  1. 1Learn functions and argumentsIn GlassboxA function is a set of steps with a name. Calling it means running it: you write its name, then the arguments, the values it should use this time, inside ( ). Change the arguments and the same function makes something new.
  2. 2Explore how memes are madeRead and quizA meme is a picture people reuse with new words, so a joke spreads and changes as it goes. Learn how memes work and how to make ones that are kind.
  3. 3Write pseudocode for a memeIn GlassboxPseudocode is a plan in plain words, one step per line, written before the code. Write yours as comments in meme.js: notes for people that the computer skips.
  4. 4Create shareable codeIn GlassboxTurn your plan into a function anyone can reuse: drawMeme(top, bottom, mood). One call, and a whole meme appears.
  5. 5Share your memeIn GlassboxUse your function twice to make two memes, then share your meme with someone and talk about what makes it kind.
Glassbox: blocks on the left, meme.js as blocks in the middle with drawFace and two caption calls, the meme 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 learner

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 learner's own work: your meme idea, your pseudocode and who you shared your meme with

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?
Co-ops and classes: unlock it for a group

One payment and one code. Each learner 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 does the learner do in Code a meme maker?

It has 5 steps: 1. Learn functions and arguments; 2. Explore how memes are made; 3. Write pseudocode for a meme; 4. Create shareable code; 5. Share your meme. Call functions with arguments to change a face and its captions, learn how memes spread and how to keep them kind, plan a meme function in pseudocode, write a drawMeme function anyone can reuse, then use it twice and share your meme. Ages 11 to 14 or grades 6 to 8.

What age is it for?

Grades 6-8. About two and a half hours, in two or three sittings.

What is needed?

A computer or Chromebook with a mouse or trackpad and a keyboard. Printing is optional: every step works on screen. No account needed.

Is there a certificate?

Yes. A numbered certificate with a page of the learner's own work, for your records or a portfolio. It is not course credit.