-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
javascript-4-prototype/sayName.js
Lines 1 to 13 in e8c19e3
| //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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels