Projects

JavaScript Basics - Question 1 of 30

What is the correct way to declare a variable in modern JavaScript?
var x = 5;
let x = 5;
both var and let
variable x = 5;
Score: 0Progress: 3%