Sololearn JavaScript course Overview answers

Here are all the questions and answers that I hope will help you learn JavaScript course.
Sololearn JavaScript course Basic Concepts answers
Sololearn JavaScript course Conditionals and Loops answers
Sololearn JavaScript course Functions answers
Sololearn JavaScript course Objects answers
Sololearn JavaScript course Core Objects answers
Sololearn JavaScript course DOM & Events answers
Sololearn JavaScript course ECMAScript 6 answers

1.1 Lesson

Your First Lesson

Question:

Welcome to JavaScript!
What is JavaScript?

Answer:

a very popular programming language

Question:

The Console
True or false? You can use the console to test code and fix bugs.

Answer:

True

Question:

Logging Messages
Which command is used to log or write messages to the console?

Answer:

console.log()

Question:

Text Messages
Drag and drop to send the message to the console.

Answer:

console.log('Testing')

Question:

The Code Playground
Drag and drop to send the message 'Error' to the console

Answer:

console.log('Error');

Question:

Lesson Takeaways
Select the correct way to send 'Lesson Completed!' to the console

Answer:

console.log('Lesson Completed!')

2.1 Lesson

Output

Question:

Output
Output "Hello!" in the browser.

Answer:

<script>
  document.write("Hello!");
</script>

Question:

Output to console
Complete the code to output "Hi!" to the console.

Answer:

console.log("Hi!")

3.1 Lesson

Variables

Question:

Variables
How do we tell JavaScript that we're working with a variable?

Answer:

var

Question:

Using Variables
Choose the correct keyword to declare a variable and assign the value of 32.

Answer:

var my_variable = 32;

Question:

Naming Variables
Which of these characters can we use to start a variable?

Answer:

Letters
Underscore sign (_)

4.1 Lesson

Comments

Question:

JavaScript Comments
What does a single line comment look like?

Answer:

// this is a comment

Question:

Multiple-Line Comments
Create a multi-line comment in JavaScript.

Answer:

/*
  this is a
  multiline
  comment 
*/

5.1 Lesson

Data Types

Question:

Data Types
Fill in the blanks to declare a variable age and assign it the number 18:

Answer:

var age = 18;

Question:

Strings
To create a string, we need to put the text inside…

Answer:

Quotation marks

Question:

Strings
Which of the following is the escape character?

Answer:

\

Question:

Booleans
Which two values does the Boolean data type accept?

Answer:

false
true

6.1 Lesson

Module 1 Quiz

Question:

Fill in the blanks to output "JS is cool!" to the console:

Answer:

console.log("JS is cool!");

Question:

Declare a variable called x, assign the value 42 to it and output it to the console.

Answer:

var x = 42;
console.log(x);

Question:

What is the output of this code?

// x = 8;
x = 2;
// x = 3;
console.log(x);

Answer:

2

Question:

Rearrange to form valid JavaScript code that declares a variable and outputs it to the console.

Answer:

<script>
  var name = "James";
  console.log(name);
</script>