Challenge: Accessing Data From a Variable
Task
Swipe to start coding
Create the following variables:
firstNamewith value"Alice".lastNamewith value"Johnson".agewith value25.
Using these variables, generate the following output:
User: Alice Johnson is 25 years old.
Make sure you use the variable values inside the output instead of hardcoding the text.
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
Awesome!
Completion rate improved to 1.35
Challenge: Accessing Data From a Variable
Swipe to show menu
Task
Swipe to start coding
Create the following variables:
firstNamewith value"Alice".lastNamewith value"Johnson".agewith value25.
Using these variables, generate the following output:
User: Alice Johnson is 25 years old.
Make sure you use the variable values inside the output instead of hardcoding the text.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single