# Getting Started

## Installing the package

Installing the package on NPM is really easy. Just typ this in the command prompt of your folder:

```bash
$ npm install quizy
```

{% hint style="info" %}
If you don't use NPM, you'll have to use another command. The package name stays **quizy**.
{% endhint %}

## Importing

Once you'be done that, we can import it and create our first quiz!

{% code title="quiz.js" %}

```javascript
const Quizy = require('quizy');

const question1 = new Quizy.Question('1+1=', ['1', '2', '3'], '2');
const question2 = new Quizy.Question('1+2=', ['1', '2', '3'], '3');

const myQuiz = new Quizy.Quiz('MyQuizName', [question1, question2])

// Now edit the quiz to your belongings!
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mwexim-1.gitbook.io/quizy/api/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
