01: A First Program

The very first exercise simply has you printing things to the screen. We will use something called console.log. This may seem like a lot to type just to print something to your terminal, but remember that JavaScript comes from a history of the browser. In the browser there really is no input and output other than the HTML page. We are using JavaScript from the terminal, and Node simply uses the browser console to talk to the terminal.

The Code

The format of these exercises is very simple:

  • You read the exercise and the code as best you can.
  • You then watch the video to see how I do it.
  • You then attempt to type in the code yourself based on what you saw me do.
  • If you run into trouble, you study the exercise videos again to see what mistakes you might've made.
  • Then you should try to break your code in different ways to see what happens.
  • Finally you can attempt the study drills, but don't get stuck on them. They are intended more as additional studies and exercises for you to try, but if they are too difficult feel, free to record which ones you couldn't do and come back to them later.

Learn JavaScript Today

Register today for the Beginner Basics course and get the new releases by just paying the difference. There's also special discounts for existing customers when new courses are released.

Still Not Sure? Check out more curriculum!