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
Introduction to JavaScript
course content

Conteúdo do Curso

Introduction to JavaScript

Introduction to JavaScript

1. Basic Concepts
2. Variables and Data Types
3. Basic Operations
4. Conditional Statements
5. Loops
6. Functions

bookChallenge: 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.
123
___ ___ = ___; console.log(___);
copy
  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.
123
let myVar = 15; console.log(myVar);
copy

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
We're sorry to hear that something went wrong. What happened?
some-alt