Update 08_day_objects.md

Fixed a Spelling at line -> 191
pull/919/head
Naman Kishwan 1 year ago committed by GitHub
parent 55d8e3dbc0
commit 9a8a5d0d5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -188,7 +188,7 @@ An empty object
const person = {}
```
### Creating an objecting with values
### Creating an object with values
Now, the person object has firstName, lastName, age, location, skills and isMarried properties. The value of properties or keys could be a string, number, boolean, an object, null, undefined or a function.
@ -431,7 +431,7 @@ console.log(copyPerson.hasOwnProperty('score'))
1. Create an empty object called dog
1. Print the the dog object on the console
1. Add name, legs, color, age and bark properties for the dog object. The bark property is a method which return _woof woof_
1. Add name, legs, color, age and bark properties for the dog object. The bark property is a method which returns _woof woof_
1. Get name, legs, color, age and bark value from the dog object
1. Set new properties the dog object: breed, getDogInfo

Loading…
Cancel
Save