Week 9 ยท 45-60 min

JavaScript Variables and Functions

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • Recap: Variables in JavaScript
  • What Is a Function in JavaScript?
  • Function Parameters and Arguments
  • Return Values in Functions

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

Recap: Variables in JavaScript
Recap: Variables in JavaScript
What Is a Function in JavaScript?
What Is a Function in JavaScript?
Function Parameters and Arguments
Function Parameters and Arguments
Slide 1๐Ÿ’ก

Recap: Variables in JavaScript

Learning goal

Build reusable JavaScript functions to organize behavior.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

Variables store values using let or const.

Those values can be numbers, strings, or booleans.

Clear naming improves readability.

Variables support all later JavaScript work.

This parallels Python variables from Module 2.

Remember

Variables are one of the basic building blocks of any script.

Recap: Variables in JavaScript

Recap: Variables in JavaScript

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: JavaScript and the DOM