Commit 07e854fc authored by Ferdinand Alexander Schimana's avatar Ferdinand Alexander Schimana
Browse files

Merge branch 'feedback-ii' into 'master'

add feedback for async assignment

See merge request !1
parents 0b3bbe3a 6aa4b271
# Feedback 5/5
- Works as expected
- Nitpick:
import {askQuestion, answerQuestion} from './quiz.js'
async function displayQuiz(){
const question = await askQuestion()
let a= await prompt("Enter answer")
// ^^^
// use better naming
const answer = await answerQuestion(question, 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