Javascript Homework #1 : Stuffed hamsters

Let’s get started with your first assignment :

Let’s say you are a corporation who sell cute hamsters (I know, right?!), and you need to grow them properly.

it is known that hamsters grow by eating eggplants, and lots of it.

as an engineer of this hamster corporation, you need to come up with a function that takes a hamster weight, and check if the hamster is big enough (lets say, 20kg..  we only grow huge hamsters in our corporation..), and return a new function!  a functions that log into the browser if our hamster not ready enough, and need to be grow and eat more eggplant or if its ready for sale.


if you want to see my solution, here it is :