Foundations

Objects

Objects

An object stores related values as properties. Dot notation reads a property by name.

Your task: Create profile with name, role, and active properties. Then create profileSummary using the name and role, and log it.

Prerequisites

  • variables
  • strings

Tests

  • profile is an object
  • profile stores the required fields
  • profileSummary uses the object properties
  • the profile summary is logged
Loading...
Console

Run code to see output.