Q:

Write a JavaScript program to reverse the order of the characters in the stringa

0

Write a JavaScript program to reverse the order of the characters in the stringa

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 const reverseString = str => [...str].reverse().join('');

console.log(reverseString('php')); 
console.log(reverseString('foobar'));

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now