Skip to content

Instantly share code, notes, and snippets.

@RahmatSaeedi
Created May 10, 2021 14:31
Show Gist options
  • Save RahmatSaeedi/9622ca0235b9cf1aae52610be12a306e to your computer and use it in GitHub Desktop.
Save RahmatSaeedi/9622ca0235b9cf1aae52610be12a306e to your computer and use it in GitHub Desktop.
CodeSignal - Arcade - Intro - JS - variableName
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