Week 4 - Session 2 - Group Programming Workshop - Virtual Pet
blog image source |
- You can give them a name
- They can get older
- As they get older, they get hungrier and less fit
- You can walk your pet to increase its fitness
- You can feed your pet to decrease its hunger
- You can talk to your pet to see if it needs feeding or walking
- What constructor function is?
- What an object's prototype is?
- Difference between an object literal and an object created using a constructor function?
- Difference between a function and a method?
- What is meant by a state?
GitHub Virtual Pet exercise - https://github.com/SharifCoding/virtual-pet