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.
Students will be able to…
In this lesson, students will work with, define and call their own functions that take in multiple parameters as input and print out output.
Students will be able to:
In this lesson, students continue working with multiple parameters that create graphics as output which is very useful, since creating several different graphical objects involves writing the same code over and over again (set the size, set the color, set the location, etc).
Students will be able to:
In this lesson, students learn about return values so they can write functions that do some work and send the result back or use later in the program.
Students will be able to:
In this lesson, students work with and define functions with return values and more than one parameter.
Students will be able to:
In this lesson, students will explore the scoping of a variable, which is where the variable is “defined” or where it exists.
Students will be able to:
In this lesson, students review content with a 15 question Unit Quiz.
Students will be able to: