Exercises – Javascript

Publicerad 2015-11-12 09:16 av Johan Leitet

Before you start

Getting started

Exercises are not mandantory and will not be corrected by the corse management. However, you will have a better chance of doing the examination assignments in the course if you first do the exercises. We higly recommend you to complete as many exercises as possible.

You have a git repo on Github named "xx222yy-exercise" (Please Note: "exercise" not "exercises") where xx222yy is your lnu-username. You can use this repo for the exercises in the course. Start of by cloning the repo to your computer:

git clone https://github.com/1dv022/xx222yy-exercise.git

Now you can pull our boilerplate repo into your repo:

git pull https://github.com/1dv022/exercise-boilerplate.git

You are now ready to start with the exercises.

The exercises

The exercises are divided into seperate levels; A, B and C where C is the most difficult level. You should always strive to complete at least level A and B.

A process will start watching files in the folder src/ for changes. When a change is detected the file will be "compiled" in to a virtual file called "build.js". A web server is started which will serve your browser with the resources needed.

When you debug your application you should do this in the browser, not in the IDE. A simple method is to write debugger in your js-source code where you want to stop the debugger and refresh the browser. Sourcemapping will make sure that linenumbers in the compiled-code matches your local version.