Challenge: Define the Variable
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
123___ ___ = ___; console.log(___);
- 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.
123let myVar = 15; console.log(myVar);
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Suggested prompts:
Can you explain what the `let` keyword does in JavaScript?
What happens if I use `var` instead of `let` to declare the variable?
Can you show me how to print a different value using `console.log()`?
Awesome!
Completion rate improved to 2.33
Challenge: Define the Variable
Desliza para mostrar el menú
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
123___ ___ = ___; console.log(___);
- 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.
123let myVar = 15; console.log(myVar);
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 2