JavaScript: Foundation — Quiz: Basics

JavaScript Basics Quiz

Are you ready?

8 questions to answer

How to declare a variable in JavaScript?

What does the following code log?

var x = 10;
console.log(x + 10);

Which of the following definitions best describes a string?

Which of the following values denotes a string?

What does the following code log?

var x = 10;
console.log('x');

Which of the following denotes the three functions in JavaScript that display dialog boxes?

What does the second argument of prompt() do?

What does Number('10') return?

Computing score...

Spread the word

Think that the content was awesome? Share it with your friends!

Join the community

Can't understand something related to the content? Get help from the community.

Open Discord

 Go to home Explore more courses