Javascript Primer Quiz - Booleans
How many values does the boolean data type have?
- Many
- Exactly two
- None
let answer
tests({
'answer is correct': (t) => {
t.isEqual(answer, 2, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
}
})
How many of these are a boolean value?
yesfalse"true"true
let answer
tests({
'answer is correct': (t) => {
t.isEqual(answer, 2, `${answer === undefined ? "You haven't submitted an answer yet" : "Not quite, try again"}`)
}
})
Onwards!
You've completed the Booleans section of the quiz! Now, click here to continue to the Variables section.