Please enable JavaScript to use CodeHS

Introduction to Game Design with p5play

Lesson 2.6 Basic Functions

Description

In this lesson, students will learn how to create basic functions using JavaScript and use them to improve the organization, readability, and flow of their programs.


Objective

Students will be able to:

  • Define JavaScript functions
  • Call JavaScript functions within the main function
  • Use functions in order to manage the flow of their programs
  • Increase the readability and organization of their code using functions