Skip to content

Add instruction to use var for declaring variables #70

@jinolacson

Description

@jinolacson

//Create a Person constructor that accepts name and age as parameters and sets those properties accordingly in the Constructor.
//code here
//Now create three instances of Person with data you make up
//code here
//Now add a sayName method on your Person class that will alert the name of whatever Person instance called it.
//code here

Change into :

//Note: use var for declaring variables

//Create a Person constructor that accepts name and age as parameters and sets those properties accordingly in the Constructor.

  //code here


//Now create three instances of Person with data you make up

  //code here


//Now add a sayName method on your Person class that will alert the name of whatever Person instance called it.

  //code here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions