Skip to content

bug: Syntax error in Javascript 101 Slide 5 - Array of Objects example #767

Description

@amore147

Found a syntax issue in:

Course: Javascript 101
Slide: 5/5
Section: Array of Objects

Current code:

const users = [{
name: "Harkirat",
age: 21
}, {
name: "raman",
age: 22
}
}

Issue:

The array is closed with } instead of ], causing a syntax error.

Expected:

const users = [{
name: "Harkirat",
age: 21
}, {
name: "raman",
age: 22
}];

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions