Given a string of words, you need to find the word with the highest number of points.
Each letter of a word scores points according to it’s position in the alphabet. a=1, z=26 and everything inbetween. Write a function that will return the word with the highest number of points as a string. If two words score the same, return the word that appears earliest in the original string.All letters will be lower case and all inputs will be valid. There will be no special characters and all words will be separated by a space. For example
function example (‘peanut butter jelly time’) // will return ‘butter’ as the answer