main.js
1
2
3
4
5
6
7
8
var str = "HAPPY FEET";
  var nonAlpha = str.replace(/[\W_]+/g,"").split("");
  console.log(nonAlpha);
  var backwards = nonAlpha.reverse();
  console.log(backwards);
  console.log(nonAlpha);
  backwards = backwards.join("");
  console.log(backwards);
Native Browser JavaScript