diff --git a/exercises/concept/fruit-picker/.docs/instructions.md b/exercises/concept/fruit-picker/.docs/instructions.md index 9c41e710c7..78f5232ac3 100644 --- a/exercises/concept/fruit-picker/.docs/instructions.md +++ b/exercises/concept/fruit-picker/.docs/instructions.md @@ -1,10 +1,12 @@ # Instructions -You are creating a new online portal for your patrons to order their fruit fresh from the grocer. The grocer has an API that you can use to see if they have the inventory desired by your customers. You need to create a small library of functions for interacting with the grocer's API. +As an online fruit seller, you will have to manage your stock inventory according to your customers so you can give them fresh fruits as quickly as possible. To keep things simple, you created the grocer's API, and now, you need to write a small functions library that will interact with your API and give you quick good results. + +You are creating a e-commerec ## 1. Create a callback to be called when the order is successful -Write a callback function called `onSuccess` to be called when the order is successful. It should invoke the imported `notify` function passing a success message to it. +Write a callback function name `onSuccess` which should invoke the import `notify` function.You have to return a `SUCCESS` message when the order is successful. ```javascript onSuccess(); @@ -13,7 +15,7 @@ onSuccess(); ## 2. Create a callback to be called when the order fails with an error -Write a callback function called `onError` to be called when the order encounters an error. It should invoke the imported `notify` function passing an error message to it. +Write a callback function name `onError` which should invoke the import `notify` function.You have to return an `ERROR` message when the order encounters an error. ```javascript onError();