const assert = require('assert');

// steps explanation
const Palindrome = str => {
  const init = str.split(' ').join('');
  const x = init.split('');
  const y = x.reverse();
  const z = y.join('');

  if (z === init) {
    return true;
  }
  return false;
};
// console.log('Pendulum');
const a1 = 'A weight, suspended from pivot. It can swing freely.';
const t1 = Palindrome(a1);
assert(t1);

@@ -236,16 +236,17 @@
 ue;%0A  %7D%0A
+%0A
   return
@@ -256,19 +256,17 @@
 lse;%0A%7D;%0A
-// 
+%0A
 console.

add spacing