BananaMaster

1 - Variables in JavaScript (let, const) | JS lessons

If you forgot something — click to go to the lesson.

Task 1.

Declare two variables: admin and name.

Task 2.

Assign the string "Alex" to the variable name.

Task 3.

Create a new variable and copy the value from the variable name into it.

Task 4.

Print the value of name using console.log (should display "Alex").

Task 5.

Create a variable for a city name. What would you call it?