Getting to Know You, Part I

  • Hey! Let's get to know each other. What's your name?

    Type it with quotes around it like this "Ryan" and then press enter on your keyboard.

  • 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".length

  • Great job! Now, let's do some math. You can do math through programming!

    To calculate 2+2, just type 2+2

  • 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.

  • 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!

Keyboard shortcuts: Run CTRL + Enter Reset CTRL + S