JavaScript Quiz
9 questions · no time limit
0:00
COLLECTIONS AND STRINGS
Question 1 of 9
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
const role = "editor";
const active = false;
const badge =
${active ? role.toUpperCase()!‘:‘({role.slice(0, 3)})};
console.log(badge);What does the code log?
YOUR PROGRESS
9
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F
Answers save as you go · flagged questions come back at the end