0
What will be the output of the following JavaScript code?
const email = "example@domain";
const regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
console.log(regex.test(email));- AError: Invalid regex
- Bundefined
- CFALSE
- DTRUE
Correct answer: C