Last active
June 23, 2022 05:18
-
-
Save JMA-Dv/c73c554d10bd82445f8d25096b62b16b to your computer and use it in GitHub Desktop.
JS Common errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Js common errors | |
//It sometimes when using a string function such as 'toLoweCase' | |
const name = 'JMA' | |
const nameWithError = name.toString(); | |
// name.toLowerCase is not a function | |
const nameLowered = name.toString().toLowerCase() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment