/CoffeeTest

A client-side 4-question true/false quiz single-page web app

Primary LanguageCoffeeScript

Coffee Test

A client-side 4-question true/false quiz single-page web app.

Technologies used:

* (Items with an asterisk indicate technologies that were new to me at the time of writing)

Requirements

  • Single-page app
  • A test with 4 true/false questions.
  • Only one question should be made visible to the user at a time.
  • Results can be stored on the client; server-side code is not necessary.
  • Examples of JSON for questions and answers below:
    {
        "questions": [
            { "id": 1, "text": "Tim Berners-Lee invented the Internet."},
            { "id": 2, "text": "Dogs are better than cats."},
            { "id": 3, "text": "Winter is coming."},
            { "id": 4, "text": "Internet Explorer is the most advanced browser on Earth."}
        ]
    }
    {
        "answers": [
            { "id": 1, "selected": true},
            { "id": 2, "selected": false},
            { "id": 3, "selected": true},
            { "id": 4, "selected": false}
        ]
    }