Unverified Commit 6aa4b271 authored by Thomas Mayrhofer's avatar Thomas Mayrhofer
Browse files

add feedback for async assignment

parent 0b3bbe3a
# Feedback 5/5
- Works as expected
- Nitpick:
```js
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')
}
displayQuiz()
```
\ 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