CMPSC 306 Javascript Function Reverse Words
Question Description
Write a function reverse_words() that takes a message as a string of characters and reverses the order of the words.
YOU ARE NOT ALLOWED TO USE the array reverse function
For example: message = “cake pound steal”;
reverse_words(message)will return ‘steal pound cake’;
When writing your function, assume the message contains only letters and spaces,
and all words are separated by one space.
“Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results.”
Attachments
20190331161740reverse_word (1kB)