// Function to reverse a string
function reverseString(str) {
return str.split('').reverse().join('');
}
// Example usage
const reversed = reverseString('Hello, World!');
console.log(reversed);
// Function to reverse a string
function reverseString(str) {
return str.split('').reverse().join('');
}
// Example usage
const reversed = reverseString('Hello, World!');
console.log(reversed);
Related
How to to check if a number is a palindrome using node js |
what is CI/CD: Github Actions? |
Write a function to capitalize the first letter of each word in a sentence using node js |
Find the Average of an Array using node js |
Find the Maximum Number in an Array |
Check if a String is a Palindrome using node js |
How to check if two strings are anagrams |
Find the intersection of two arrays using node js |