- Please write your code to run on the latest version of Chrome.
- Do not use libraries; please write your code using only the JavaScript specifications and APIs that are usable on the aforementioned browser.
- When exam.html is opened in the browser, the content of variable TABLE_DATA in json/data.js will appear as a table on the browser. Table column order should adhere to the order already written in exam.html.
- When button#start is clicked, table rows will randomly rearrange every second.
- The processing in 2 can be stopped when button#stop is clicked.
- When button#sort is clicked, rows will be sorted by price in descending order. If two or more prices are the same, rows will be sorted in ascending id order.
- Please write your code so as to avoid triggering unnecessary reflows and repaints.
- As long as your code fulfills the requirements, you may add other optional features or requirements.
- Download test.zip from this page and open it on your machine.
- You will find the files needed for this test. Edit js/app.js by writing code that fulfills the requirements above. You do not need to edit the other files.
- Once you are finished, compress all of the code (including js/app.js) into a zip file and upload it from the form below. Please note that you will be unable to upload files once time has run out.