Code Review: Trying to improve my javascript code in this simple challenge from coderbyte

Published --