In part 1 , we discussed about creation , conversion , comparison and String class and primitive string.

Reversing an string

Using split , reverse and join (popular method)

reversing an array using spread operator

I prefer to use this method as it works for not only arrays and numbers but also for surrogate pairs. (“talk in upcoming session”)

custom reverse function

Bonus

Sorting of Array lists using localeCompare()

Thanks a lot for your time, Leave a clap if you like it. I am very happy if you are reading this after first “String in JS part 1”.

I am programmer and web developer who loves to teach