Added var vehicle so that I can use it in the ternary.
Added a comment explaining the ternary and then added the ternary. Tested all the different options to make sure the console produced the correct message.