Explore

JavaScript Fundamentals

by turhan-ergene

Test your JavaScript knowledge. The language that powers the web — from variables to type coercion.

You're previewing this room. Log in or create a free account to answer the questions and track your progress.
Study material

JavaScript has three ways to declare a variable. var is the old way, with quirks around scope that trip up beginners. let declares a variable that can be reassigned later. const declares a binding that cannot be reassigned once set -- the value itself can still change if it is an object or array, but the name cannot be pointed at something else.

Which keyword is used to declare a constant in JavaScript?

multiple choice

var
let
const
fixed
Log in to answer

Ready to test yourself?

Sign up free to answer, score points, and build your streak.