Please enable JavaScript to use CodeHS

Tennessee Coding I

Description

In this lesson, students will learn how to create objects and store key/value pairs of data.

Objective

Students will be able to…

  • Understand what objects are and how they store data.
  • Understand the difference between an object’s key and value.
  • Create an empty object and assign it a key/value pair.
Description

In this lesson, students will explore how to use objects to manage graphics in JavaScript. They will learn how objects store properties and how passing objects as function parameters affects program behavior. Students will apply these concepts in interactive coding exercises to create animations and simulations.

Objective

Students will be able to:
- Define and manipulate objects that store graphic properties.
- Pass objects as parameters and explain the difference between passing by value and passing by reference.
- Use objects to create and manage animated elements on a canvas.

Description

In this lesson, students will explore the concept of object methods in JavaScript. They will learn how methods define the behaviors of objects and how to use them effectively. Students will apply these concepts through interactive coding exercises that incorporate object methods in animations and simulations.

Objective

Students will be able to:
- Define and implement methods inside JavaScript objects.
- Differentiate between object properties and methods.
- Use object methods to manipulate and interact with objects.

Description

In this lesson, students will learn how to use a for…in loop to iterate over all of the keys in an object.

Objective

Students will be able to…

  • Iterate through the keys of an object
  • Better understand the difference between keys and values in an object
Description

In this lesson, students will learn about object constructors in JavaScript and how they are used to create multiple instances of objects efficiently. They will explore the syntax of constructors, practice creating instances, and apply their knowledge to interactive coding challenges.

Objective

Students will be able to:
- Define and implement an object constructor in JavaScript.
- Differentiate between object literals and object constructors.
- Use constructors to create multiple instances of an object with shared properties and methods.