Stripe Frontend Screen

Stripe Frontend Screening

Level: Senior Frontend
Questions Asked:

asked to create a passport format input which allows the user to select the passport code “USA, CA, UK” etc, and then be able to validate the passport number based on the regex of that country.

for example, if USA, make sure it follows 2 Digits and 6 Letters

I got this question earlier this year, it’s a lot harder than it looks, also there are multiple parts