I find the problem statement to be unclear. Each of the first three user stories is missing important information:
User story #1: The format of the parsed data is unclear.
User story #2: It is unclear how to decide which action to take. A look at the tests might be enough to provide guidance on this, though.
User story #3: If I understand correctly, the return type should be an object containing arrays of actions on each property?
Please provide me with more details, especially on #1.
Challenge Information:
Build a Smart Pantry Restocker - Build a Smart Pantry Restocker
One more issue I had, ‘actions’ are objects with the properties ‘type’ and ‘item’, both in #2 and #3.
Given all information I provided here, I believe, it should be possible to solve this lab without further help. #5 is a bit unclear, but there’s really just one straightforward way to do it.
Yes, just another prime example of how sloppy they’re getting with some of these new additions. Honestly not sure if humans are even producing these anymore and they’re passing poor design off as difficulty. Thanks for sharing the github link where we can find what the passed data looks like.
I would say that this lab would be a bit easier it they included the pantry and rawData arrays in the scripts.js from the start. I feel like other labs have some starter data to work with.
This lab took me around 4 hours, but with clearer and more complete instructions I could have finished it in about 15 minutes… And I’m still stock on #5… That’s not a productive exercise, you learn nothing except to guess what the author wanted when he wrote it.
edit : in #5 you have to add your own data to the exercice to show groupedbyzone…