-
Notifications
You must be signed in to change notification settings - Fork 0
Exam for JS devs 2020 04 20
wojtek555 edited this page Apr 23, 2020
·
3 revisions
Create a JS client side browser web application (SPA) in a public repository, at Github for instance, according to the following scenario:
- The application should be responsive, it's language is
en-US
. - The application has 2 pages. The default, landing page displays text "Welcome" and below the link to second application's page titled "Convert Data", pointing to url
/convert
. The contents of this default page should be centered vertically and horizontally. - There's a form with a textarea, named
data
, on page under url/convert
. - When user submits the form, the application should find any valid
en-US
numbers indata
and should display them, below form, as a list without duplicates, sorted like numbers in ascending order. Examples of valid numbers: "1", "-10.1234567890123456789012345". Example text: "Alice has 9 apples, Bob has 9 as well, but I'd like to have 10!". The correct resulting array for this example text is['9', '10']
– sorted like numbers and with no duplicates. Note, that strings like "1.1", "1.10", and "1.10000" are still meaning the same number, so they should be considered as duplicates. - The form can be submitted only by user who is at least 18 years old. We validate this by telling user to type his date of birth in another form's input.
- The page under url
convert
should display a link pointing to application's default page.
Time for task: 24 hours.
Technologies: any. You can use any JS framework, any CSS framework, and any third party libraries. You can also use just plain JS, CSS and HTML.