Intro to Programming with Javascript

Robin Bonatesta
The Diary of HacKSU
1 min readSep 17, 2015

This week at hacksu (hacksu.cs.kent.edu) I taught simple programming concepts in javascript.

What you’ll learn:

  • variables
  • comments
  • the console
  • flow control (if/then statements, for loops)
  • functions

File setup:

To recreate this tutorial, just simply make a file called index.html and another called script.js and make sure they’re in the same folder. Follow the tutorial in the code below.

The following code is commented fully with all the explanations you’ll need.

Lets get to it:

In the index.html file:

and in the script.js file:

As always, if you find any errors or have any corrections or questions, let us know at hacksu@cs.kent.edu.

--

--

Robin Bonatesta
The Diary of HacKSU

Full Stack Developer @ Cladwell. University Innovation Fellow, Venture For America Fellow, serial hackathon organizer.