Essentials
primer-original-v2mediumEssentialsWeb Technologiesprimer-original-v2

If the phone number should accept only 10 digit numbers, which of the following options will suit?

Answer options

A
<input type="text" pattern="[0-9]{10}"/>
B
Incorrect HTML/JavaScript syntax
C
Valid syntax but does not satisfy the requirement
D
Unrelated markup or method

Correct answer: <input type="text" pattern="[0-9]{10}"/>

Detailed Solution & Conceptual Analysis

This question has been retained as-is due to its unique context.

Key Engineering Takeaway

In Essentials, understanding the underlying mechanics of Essentials is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.

Related Essentials questions

Practice more Essentials questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.