Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1004 Bytes

02-basic-knowledge-exercise.md

File metadata and controls

62 lines (40 loc) · 1004 Bytes

Question 1

Print numbers from 1 to 10 using the ++ operator.

Question 2

Print numbers from 10 to 1 using the -- operator.

Question 3

Check the output of the following expressions in the console:

  • 1+1
  • 1+200
  • 200+"300"
  • "learnjavascript" + 400

Question 4

Check the results of the following comparisons:

  • 2 === 2
  • 2 == "2"
  • 2 === +"2"
  • "learnjavascript" == "learnjavascript"
  • "LearnJavascript" == "learnjavascript"
  • 0.3 == 0.30
  • 1.0 == 1
  • 1.0 === 1

Question 5

Create 5 variables for your bank account details using let, const, and var.

Question 6

Write a code snippet and explain it using a multi-line comment.

Question 7

Explain the difference between a Process and a Thread.

Question 8

List the differences between let, const, and var.

Question 9

Provide one example for each of the following operators along with the expected output:

**
%
!=
!==
<=
>=

Question 10

In your own words, explain what JavaScript is in detail.