Javascript String Manipulation using Using toUpperCase and toLowerCase

Javascript has plenty of functions that can make your lives easier and in this topic, we will talk about on how you can easily convert any string of characters into lower and uppercase letters. The function we are talking about is using the "toUpperCase()" and "toLowerCase()". This function is pretty much useful in scenarios where users tend to input upper and lower case letters. and you want them to be uniform when you want to store it into a database. One of the most common scenarios that you can find it useful is by registering a username. Most of the time users tend to captialize the first letter of their username, that can be pretty tough to compare most especially when it deals on logging in some details.

The method "toUpperCase()" automatically converts all of your characters to upper case and the method "toLowerCase()" changes your characters to the other way around. That's it, you can apply this one when you submit data and save it over to the database. This is generally useful for registering important data like emails and the like.