Week 4 - Session 2 - Group Programming Workshop - Virtual Pet

blog image source
Group exercise - make our own JavaScript virtual pets, where we will able to give it a name, feed it, take it for walks. It's going to be great. The pets were going to make will have the following features:
  • 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
Learning objectives from this exercise:
  • 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

Popular posts from this blog

Week 9 to 12 - Learning with MCR Codes

Week 9 - Session 1 - The Internet, the Web, HTTP