Sololearn JavaScript course Basic Concepts answers

Here are all the questions and answers that I hope will help you learn JavaScript course.
Sololearn JavaScript course Overview 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

7.1 Lesson

Math Operators

Question:

Arithmetic Operators
What will the following statements display?

var test = 5 + 7;
document.write(test);

Answer:

12

Question:

Multiplication
What character do we use for multiplication?

Answer:

Question:

Division
What character do we use for division?

Answer:

/

Question:

The Modulus
What’s the result of using a modulus operator for 38%5?

Answer:

3

Question:

Increment & Decrement
What are increment and decrement are used for?

Answer:

Adding or subtracting 1 from a number

8.1 Lesson

Assignment Operators

Question:

Assignment Operators
Calculate and enter the resulting value of this expression:

var number = 20;
number *= 5;

Answer:

100

9.1 Lesson

##Comparison Operators

Question:

Comparison Operators
What do comparison operators return?

Answer:

true
false

Question:

Comparison Operators
Enter the corresponding operators according to the comments at right.

Answer:

val1 == val2 // are equal
val1 != val2 // not equal
val1 < val2 // less than
val1 === val2 // are strict equal (identical)

10.1 Lesson

Logical or Boolean Operators

Question:

Logical Operators
Logical AND (&&) returns true if:

Answer:

If both operands are true

Question:

Logical Operators
Logical NOT returns true, if:

Answer:

The operand is false

11.1 Lesson

String Operators

Question:

String Operators
What’s the output of the following code?

var x = "50";
var y = "100";
document.write(x + y);

Answer:

50100

12.1 Lesson

Module 2 Quiz

Question:

Which of these names are acceptable for JavaScript variables?

Answer:

firstNumber
_module

Question:

Fill in the data types of the data shown below in the comments field:

Answer:

12 // number
"some text" // string
true // boolean

Question:

What's the result of the expression var1&&var2, if var1=true and var2=false?

Answer:

false