> For the complete documentation index, see [llms.txt](https://it2805.gitbook.io/curriculum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://it2805.gitbook.io/curriculum/introduction-to-javascript.md).

# Introduction to JavaScript

We will now enter into a new region of web development, programming. What we have done so far is markup and styling, but with the programming language JavaScript we can create dynamic web applications that react on user interaction in a far more flexible way.

JavaScript was created in 10 days in May 1995 by Brendan Eich. The name JavaScript have nothing to do with Java, but was chosen as a marketing move, to ride on Java's fame wave.

JavaScript is the language of the web, implemented in all major browsers. And as history progresses, the implementations also converge on one standard.

In the following sections I will write examples with code. In some instances, these code blocks will be followed by the characters ">>" on a new line. This means that the output from the code is whatever follows the ">>" characters.

I would also recommend that you pick up the book Eloquent JavaScript by Marijn Haverbeke. You can find the ebook for free [here](http://eloquentjavascript.net/), or by it from [Amazon](https://www.amazon.com/Eloquent-JavaScript-2nd-Ed-Introduction/dp/1593275846/ref=sr_1_1?ie=UTF8\&qid=1501749033\&sr=8-1\&keywords=eloquent+javascript), [Bookdepository](https://www.bookdepository.com/Eloquent-Javascript--2nd-Ed-/9781593275846), or wherever you by your books. Reading the book is time well spent when you try to learn JavaScript, either for the first time, or the nth time. The book was consulted while writing this curriculum.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://it2805.gitbook.io/curriculum/introduction-to-javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
