In Javascript: Write a function named “categorize” that takes astring as a parameter and returns “short” if the input has lessthan 6 characters, “medium” if the input has greater than or equalto 6 but less than 7, and returns “long” if the input has greaterthan or equal to 7 characters. Thanks
Expert Answer
An answer will be send to you shortly. . . . .