Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Defining the Variable | Variables and Data Types
course content

Course Content

Introduction to JavaScript

Challenge: Defining the VariableChallenge: Defining the Variable

Task

  1. Define a variable named myVar and assign the value 15 to it.
  2. Print the variable myVar to the console.
  1. Use the let keyword to declare a variable.
  2. Assign the value 15 to the variable using the assignment operator (=).
  3. Use the console.log() function to print the variable's value to the console.

Everything was clear?

Section 2. Chapter 2
course content

Course Content

Introduction to JavaScript

Challenge: Defining the VariableChallenge: Defining the Variable

Task

  1. Define a variable named myVar and assign the value 15 to it.
  2. Print the variable myVar to the console.
  1. Use the let keyword to declare a variable.
  2. Assign the value 15 to the variable using the assignment operator (=).
  3. Use the console.log() function to print the variable's value to the console.

Everything was clear?

Section 2. Chapter 2
some-alt