Why does string.split('').reverse().join('') in JavaScript return a reversed string? - Study24x7
Social learning Network
2 followers study24x7 05 Jul 2024 01:28 PM study24x7 study24x7

Why does string.split('').reverse().join('') in JavaScript return a reversed string?

A

The split method incorrectly splits the string

B

The reverse method does not work on strings

C

The join method concatenates incorrectly

D

None of the above

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles