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

Programming Exercises

Add a contact form with an interactive phone number field that formats the number as the user types.

Medium

Problem Statement

Add a contact form with an interactive phone number field that formats the number as the user types.

Sample Input

A phone input with automatic formatting.

Sample Output

The webpage displays a phone input that formats as (xxx) xxx-xxxx as the user types.

Limits

Time: 2s · Memory: 256 MB

Code Editor

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

<!doctype html> <html></html>

Document

To view the HTML changes, please type the code within the editor