Write a function to uppercase every other word in a passed sentence. So given The dog ran

Question:

Write a function to uppercase every other word in a passed sentence. So given “The dog ran a long way,” it would output “The DOG ran A long WAY.”

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: