Created
June 30, 2020 01:11
-
-
Save stefensuhat/7698534acced24da3d151b4475e2446c to your computer and use it in GitHub Desktop.
Get uppercase name
This file contains hidden or 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
| // bad code | |
| function name(value) { | |
| return value.toUppercase(); | |
| } | |
| //good code | |
| function getUppercaseName(value){ | |
| return value.toUppercase(); | |
| } | |
| //better code | |
| //this function is use for convert name to uppercase | |
| function getUppercaseName(value){ | |
| return value.toUppercase(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment