×
×
Correct!

Use comments to describe the correct data type of the following variables:

let length = 16; // Number let lastName = "Johnson"; // String const x = { firstName: "John", lastName: "Doe" }; // Object
let length = 16; // NUMBER let lastName = "Johnson"; // STRING const x = { firstName: "John", lastName: "Doe" }; // OBJECT
let length = 16; // number let lastName = "Johnson"; // string const x = { firstName: "John", lastName: "Doe" }; // object

Not Correct

Click here to try again.

Correct!

let length = 16;          // 
let lastName = "Johnson"; // 
const x = {
  firstName: "John",
  lastName: "Doe"
};                        // 

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.