JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
duke 1
read me first
1 display values
2 store values
3 store + display
Congratulations!
More
Share
Explore
2 store values
using variables to store text values and number values, then displaying them
A store text values
B store number values
C store number and text
D debug store text
E debug store number
F debug store text and number
Store text and number challenge
You will be able to make programs that can store and display text and number values
learning-point
a
value
can be stored in a
variable
a variable is like a label for a
storage box
we say the value is
assigned
to the variable
in the picture the
value
15
is assigned to the
variable
eggs
,
the
value
10
is assigned to
variable
bacon
later the variable can be used to display the value which has been stored
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.