Learning to program in javascript. A series of lessons/tutorials.
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lessons
README.md
setup.sh

README.md

learning js

Let's learn some javascript!

To download these lessons, type the following commands in the terminal window:

$ curl -L http://git.io/_ScX3Q | tar -xz

Getting Started

Before we can begin these tutorials, you're going to have to install node.js. Node.js is a command line program which allows us to execute javascript without a browser.

Our Programming Environment

Since node is a command line program, the majority of our programming will occur on the command line. On Macs, the command line can be accessed through the Terminal application.

The command line is a text interface to your computer which allows you to write and edit software, navigate the file system and execute programs, among many other things.

Here are a few basic commands to get you started:

  • ls - ls stands for list. ls will list the files and sub-directories in you current directory. For example, in a directory called Cookie Recipes, ls may yield the following list: ChocolateChip.txt Oatmeal.txt

  • cd [some directory] - cd stands for change directory. The parameter you pass to cd is the directory you will be taken to. For example: cd ~/Desktop/ will take you to your Desktop directory.

  • clear - clear clears the console screen, giving you a blank slate to work with.

Our Editor

This course will use Vim as it's command line text editor.

Vim is an extremely powerful, yet minimal text editor. I guarantee that not only will Vim become your preferred way to edit code, but it will also become your preferred way to edit text in general.

To quickly setup Vim before we begin, please run the following command in this projects root directory:

$ ./setup.sh

For a gentle introduction to Vim, please run the vimtutor command on the command line.

License

(The MIT License)

Copyright (C) 2012 by Siddharth Mahendraker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.