Contenido del Curso
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: Defining the Variable
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
- Use the
let
keyword to declare a variable. - Assign the value 15 to the variable using the assignment operator (
=
). - Use the
console.log()
function to print the variable's value to the console.
¿Todo estuvo claro?
Sección 2. Capítulo 2
Contenido del Curso
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: Defining the Variable
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
- Use the
let
keyword to declare a variable. - Assign the value 15 to the variable using the assignment operator (
=
). - Use the
console.log()
function to print the variable's value to the console.
¿Todo estuvo claro?
Sección 2. Capítulo 2