Reverse the string with three methods in js.

Reverse the string with three methods in js.

First - step: split this string then,

Second - step: call the reverse method.

Third - step: join this string.

Example: let string = 'hello'; let cutingBox = string.split(''); cutingBox = cutingBox.reverse(); cutingBox = cutingBox.join(''); console.log(cutingBox);

let string = 'hello';
let cutingBox = string.split('');
cutingBox = cutingBox.reverse();
cutingBox = cutingBox.join('');
console.log(cutingBox);