Created
May 10, 2021 14:31
-
-
Save RahmatSaeedi/9622ca0235b9cf1aae52610be12a306e to your computer and use it in GitHub Desktop.
CodeSignal - Arcade - Intro - JS - variableName
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
function variableName(name) { | |
return name.match(/^[A-Za-z_][A-Za-z_0-9]*$/) != null ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment