Commit 27add742 authored by Ferdinand Schimana's avatar Ferdinand Schimana
Browse files

add final

parent 3c712a97
File added
// index.js
import {askQuestion, answerQuestion} from './quiz.js'
let rnd = Math.floor(Math.random() * Math.floor(5));
const question = askQuestion(rnd)
let a= prompt("Enter answer")
const answer = answerQuestion(rnd, a)
console.log(answer ? 'correct' : 'incorrect')
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment