Hey! Let's get to know each other. What's your name?
Getting Started with Programming (Section 1 of 8)
Getting to Know You, Part I
Written by Ryan Bubinski
-
Type it with quotes around it like this
"Ryan"and then press enter on your keyboard.Rate this exercise -
Well done! How long is your name? Find out by typing your name in quotes and ending it with
.length. Press enter afterwards (do this from now on after you complete the instructions).For me, that'd be
"Ryan".lengthRate this exercise -
Great job! Now, let's do some math. You can do math through programming!
To calculate 2+2, just type
2+2Rate this exercise -
See what happened? You can use the command line to do basic math operations. Try playing around some more.
You can use
*for multiplication and/for division if you want.Rate this exercise -
There are some things you can't do in the console, though.
Try typing your name in the command line without any quotes. It will return a ReferenceError!
Rate this exercise