Make sure you’ve loaded WeScheme, clicked “Run”, and are working in the Interactions Area on the right. Hit Enter/return to evaluate expressions you test out.
Strings
String values are always in quotes.
-
Try typing your name (in quotes!).
-
Try typing a sentence like "I’m excited to learn to code!" (in quotes!).
-
Try typing your name with the opening quote, but without the closing quote. Read the error message!
-
Now try typing your name without any quotes. Read the error message!
1 Explain what you understand about how strings work in this programming language.
Numbers
2 Try typing 42
into the Interactions Area and hitting “Enter”. Is 42
the same as "42"
? Why or why not?
3 What is the largest number the editor can handle?
4 Try typing 0.5
. Then try typing .5
. Then try clicking on the answer. Experiment with other decimals.
Explain what you understand about how decimals work in this programming language.
5 What happens if you try a fraction like 1/3
?
6 Try writing negative integers, fractions and decimals. What do you learn?
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.