Challenge: Accessing Data From a Variable
Task
Swipe to start coding
- Create a variable
firstNamewith value"Alice". - Create a variable
lastNamewith value"Johnson". - Create a variable
agewith value25. - Write a
console.logstatement outputting:
User: Alice Johnson is 25 years old.
Use the values of variables inside the console.log statement to generate this output.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you provide an example to illustrate this?
Awesome!
Completion rate improved to 1.33
Challenge: Accessing Data From a Variable
Swipe to show menu
Task
Swipe to start coding
- Create a variable
firstNamewith value"Alice". - Create a variable
lastNamewith value"Johnson". - Create a variable
agewith value25. - Write a
console.logstatement outputting:
User: Alice Johnson is 25 years old.
Use the values of variables inside the console.log statement to generate this output.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single