Use character classes, which allow you to define a group of characters you wish to match You place them inside square brackets. To test for a match of characters at the beginning of a string, use the caret ^, but outside of the character set const emmaAtFrontOfString = " Emma likes cats a lot.

4m read timeFrom dev.to
Post cover image
4 Comments

Sort: