Answer to Question #187585 in HTML/JavaScript Web Application for raj

Question #187585


Given an array

mart of objects in the prefilled code and categoryOfItem, item as inputs, create a JS promise, resolve with "Item Found" text, if the

categoryOfItem matches with the category and the corresponding items list includes the itemreject with "Category Not Found" text, if the

categoryOfItem does not match with any catergory in the martreject with "Item Not Found" text, if the

items list does not include item Use async/await and try/catch blocks.



Quick Tip

You can use array methods find() and includes().

Input

  • The first line of input contains a string categoryOfItem
  • The second line of input contains a number item

Output

  • The output should be a single line string with the appropriate message

Sample Input 1

pulses

green gram

Sample Output 1

Item Found

Sample Input 2

detergents

tide

Sample Output 2

Category Not Found




1
Expert's answer
2021-05-01T14:14:34-0400
Dear raj, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS