# Intro to JavaScript

Here you can find course content and the assignments for the Intro to JavaScript module.

| Week | Topic                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Preparation                                                                                                      | Assignment                                                                                                     | Session Plan                                                                                                       |
| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| 1.   | Intro JavaScript (What is it, what can you use it for); Setup js either via browser or via node; [Variables: var, let, const](https://program.hackyourfuture.dk/course-content/foundation/week1#variables); Console.log; [Types](https://program.hackyourfuture.dk/course-content/foundation/week1#Types): [String](https://program.hackyourfuture.dk/course-content/foundation/week1#String), [number](https://program.hackyourfuture.dk/course-content/foundation/week1#Number), boolean, [null, undefined](https://program.hackyourfuture.dk/course-content/foundation/week1#Null--undefined), [array](https://program.hackyourfuture.dk/course-content/foundation/week1#Array); [Operators](https://program.hackyourfuture.dk/course-content/foundation/week1#comparison-operators) | [Preparation](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week1/preparation) | [Assignment](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week1/assignment) | [Session Plan](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week1/session-plan) |
| 2.   | Conditions; [Functions](https://program.hackyourfuture.dk/course-content/foundation/week2#Functions); Global vs local scope; For loop                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | [Preparation](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week2/preparation) | [Assignment](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week2/assignment) | [Session Plan](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week2/session-plan) |
| 3.   | Arrays (continued); [Objects](https://program.hackyourfuture.dk/course-content/foundation/week3#Objects); [Call stack](https://program.hackyourfuture.dk/course-content/foundation/week3#Call-stack)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [Preparation](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week3/preparation) | [Assignment](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week3/assignment) | [Session Plan](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week3/session-plan) |
| 4.   | Recap of js basics; Solving problems                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [Preparation](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week4/preparation) | [Assignment](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week4/assignment) | [Session Plan](https://program.hackyourfuture.dk/course-content/foundation/intro-to-javascript/week4/session-plan) |

> **Kind note:** The JavaScript modules are tough. Very tough! We expect you to **always** come prepared to the session on Sunday.

## Learning goals

* [ ] Understand what JavaScript is and what it's used for
* [ ] Use basic programming concepts such as variable definitions, types and operators
* [ ] Practice reading and fixing errors
* [ ] Use conditional logic to implement more advanced functionality
* [ ] Write basic functions with parameters and arguments
* [ ] Understand global vs local scope
* [ ] Using objects and arrays to store, access and manipulate more complex data


---

# Agent Instructions: 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://program.hackyourfuture.dk/course-content/foundation/intro-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.
