function lowerCase(str){ return str.replace(/[A-Z]/g, u => u.toLowerCase()); }
An Introduction to Regular Expressions (Regex) In JavaScript
Brandon Morelli

Great article!, I find this really helpful as I embark on my javascript journey.

Pls I need clarity on why you used “u” in the above code to refer to the saved value from /A-Z/.

Also, it will be helpful if you would briefly explain the arrow =>, I’m just but a beginner.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.