const testStr = "Javascript is great language . I love javascript and React is a javascript framework.";
const reverseStr = (input) => {
const wordArr = input.split(" ");
const revArr = [];
for(let i = wordArr.length - 1; i >= 0; i--){
revArr.push(wordArr[i]);
}
return revArr.join(" ");
}
console.log(reverseStr(testStr));
3 Different Ways to Reverse a String in JavaScript
Coding Interview Questions (Reverse A String) - Episode 1
1. How to Reverse a String in C# - C# Interview Questions (4 Ways)
3 ways to reverse a string of characters in JavaScript.