This is a Coderbyte JS challenge. The goal is to write a function that takes in a string and returns the longest word in the string. If two words are the same size the first word is returned. The input will never be empty. This question has been asked before, although the original question involved using a variety of string methods and a regexp. I am a JS (and p…