DEV Community

Discussion on: How to Reverse a String

Collapse
 
royalfig profile image
Ryan Feigenbaum

This is something I knew intuitively, but never thought of explicitly. Are there any resources you recommend that covers tips, tricks, gotchas for text processing in JS?

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

Begin with JS data structures, then search for string related API on JavaScript. Note that JavaScript lacks static typing so sometimes you can call a method that deals with strings on a non-string data type (same with other data types and language pre-defined methods). At this point you don't know what it does in background for example when performing string split, but you can also dig deeper if you want.