Quiz Yourself on JavaScript Essentials
Check your understanding of what you've learned in this chapter by taking this quiz.
1
What will be the output of the following code?
const name = "Robert";
name = "Robbie";
console.log(name);
A)
null
B)
Robbie
C)
SyntaxError: Assignment to constant variable.
D)
TypeError: Assignment to constant variable.
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.