Toggle navigation
Mr. Code's Wild Ride
Mr. Code
Curriculum
Showcase
Python
Math
Games
Typing
Sign in
ID Maker
Level 1
Step 1
Step 2
Step 3
Step 4
Step 2:
Show the age from the text box in the createId function.
Hint:
Use the
value
property to get something from a text box:
ageInput.
value
Then use
${}
to inject a variable in a string:
`Age:
${
ageInput.value
}
`
Finally update the age paragraph with the string by following the pattern for the showing the name.
Last step
Next step
×
Sign in