Question: Any help with figuring out this exercise on javascipt? Egg Laying Exercise Define an object called hen it should have three properties: nane should be
Any help with figuring out this exercise on javascipt?
Egg Laying Exercise Define an object called hen it should have three properties: nane should be set to 'Helen eggCount should be set to 0 LayanEgg should be a method which increments the value of eggCount by 1 and returns the string "EGG". You'll need to use this hen.name Helen hen.eggCount hen. LayAnggoEGG hen layAnEg9O ECCO hen.eggCount . ndex.js It hen 2 none! "Helen 3 eggCount: 0 4- layAE 990 5 forcie: 110;> ceturn this.eggCount; 9 010
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
