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

1 Expert Approved Answer
Step: 1 Unlock

Heres a JavaScript function to test if a sentence is symmetric along with test cases code function i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!