Getting Started

This page will help you with importing Quizy.

Installing the package

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

$ npm install quizy

If you don't use NPM, you'll have to use another command. The package name stays quizy.

Importing

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

quiz.js
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!

Last updated