How to write a JS function to print "fruit", "vegetable" or "unknown" depending on the input string?
Fruits are: banana, apple, kiwi, cherry, lemon, grapes, peach
Vegetable are: tomato, cucumber, pepper, onion, garlic, parsley
All others are unknown
The input comes as a single string argument, the name of the fruit/vegetable/other thing:
The output should be printed to the console.