课程: JavaScript: Five Advanced Challenges and Concepts
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Advanced solution: Create a Reactive object - JavaScript教程
课程: JavaScript: Five Advanced Challenges and Concepts
Advanced solution: Create a Reactive object
(upbeat music) - [Instructor] For this last challenge, you've been given free reign to use everything you've learned in this course to build your own plant tracking app. And by free reign, I mean I'm providing you with almost nothing to start with. So you have to build out the entire functionality yourself. The only thing you have to start is the test code where we have a plantArray that contains information about a series of plants, including their name, sowingDate, estimatedFruitingTime, and actualFruitingTime. And at the very bottom, the functionality to loop through each of the arrays, and try to first sow the plant, and then record the actual fruiting time. Now looking at this example, you'll see right away that it's a bit contrived because we are both providing the information for when the plant is sowed and then also when it fruits. And the idea here is that in the real world if you actually built out this app,…