JavaScript coding challenge
Matching strings using regular expressions
⨠Your Task
Return true only if string: š contains only word characters: letters (a-z, A-Z), numbers (0-9), Underscore (_) AND š is at least one character long.
āļø JavaScript
š Press "Run" and check the result below.
Test cases
Should match string Hello
Should not match string Hello there
Should not match empty string
Want to try another challenge?
- JavaScript
- Python
- PHP
- SQL
JavaScript Fundamentals
A set of coding problems that cover the basic syntax and features of the programming language.
1. VariablesComplexity
2. FunctionsComplexity
3. OperatorsComplexity
4. Control structuresComplexity
5. Classes and ObjectsComplexity
6. StringsComplexity
7. Regular expressionsComplexity
8. Error handlingComplexity