Question: Write a function to test if a sentence is a symmetric sentence. (function will return true or false) Symmetric sentence examples: 1. Live not on
Write a function to test if a sentence is a symmetric sentence. (function will return true or false) Symmetric sentence examples:
1. Live not on evil (-> livenotonevil symmetric sentence)
2. Step on no pets (-> steponnopets symmetric sentence)
3. Too bad I hid a boot (-> toobadihidaboot symmetric sentence)
4. Evil olive (-> evilolive symmetric sentence)
5. Borrow or rob (-> borroworrob symmetric sentence)
6. Hello world (->helloworld NOT symmetric sentence)
Use javascript format and include test cases calling the checker function
Step by Step Solution
3.58 Rating (159 Votes )
There are 3 Steps involved in it
Heres a JavaScript function to test if a sentence is symmetric along with test cases code function i... View full answer
Get step-by-step solutions from verified subject matter experts
