Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a component that validates a hardcoded string as a valid email address and displays the result.

Hard

Problem Statement

Create a component that validates a hardcoded string as a valid email address and displays the result.

Sample Input

Email: [email protected]

Sample Output

Is Valid Email: true

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

import React from "react";
 
 const ValidateEmail = () => {
  return (
  <div>
  {/* Display email validation result */}
  </div>
  );
 };
 
 export default ValidateEmail;