Please enable JavaScript to use CodeHS

Indiana Introduction to Computer Science

Lesson 12.1 Functions and Parameters 1

Description

In this lesson, students learn about functions and parameters in the context of JavaScript, which builds on their prior knowledge of working with functions in Karel. This lesson focuses specifically on defining and calling functions, and passing simple, single parameters to functions.


Objective

Students will be able to…

  • Explain the purpose of functions
  • Create JavaScript functions
  • Utilize JavaScript functions to solve simple problems
  • Create functions that take in parameters as input