Write a function to calculate the word with the biggest score.
I was given below challenge for a possible software developer job and only below statement is provided and nothing else. It says ;
Using ES5 or ES6, write a function ‘wordScoreCalculator’ that calculates the word with the highest score using the system A = 1, B = 2, C = 3 D = 4, E = 5 etc. The string will only contain a single space between words and there will be no punctuation.
I want to clarify what should be the required outcome they are asking ?
Either calculate the word with highest score as
E = 5 in this case or calculate the highest score of whole string as
15 in this case?