Basic Regular Expressions in JavaScript

Easy
7
57.6% Acceptance

In this lab, you'll learn the basics of regular expressions in JavaScript by creating a simple email validation. Regular expressions are patterns used to match character combinations in strings. They are very useful for validating user inputs, working with text data, and finding specific patterns within strings.

You'll create a regex pattern to validate email addresses, and implement a function that uses this pattern to check if provided email addresses are valid. Make sure to use the correct JavaScript syntax and ESM (ECMAScript modules) import/export statements.