# 2 - Expressions and loops

## Lesson Resources

### Presentations

* [Week 2 - Javascript I - Expressions and loops \[Google Slides\] - 2020 (english)](https://docs.google.com/presentation/d/1vcl_wPPb3ZCgSYduY_6zpUv23gjNF2f33RpomVligF4)
  * Created by Alexandra Yamaui \[MigraCode]
* [Week 2 - Javascript I - Expressions and loops \[Google Slides\] - 2020 (español)](https://docs.google.com/presentation/d/1D7kpvIg5ntF2WEl6jCDKcTKHkqImBIO0yQ_tHDG7lZA)
  * Created by Alexandra Yamaui \[MigraCode]
* [Week 2 - JS Core 1 \[Google Slides\] - 01/05/2020](https://drive.google.com/open?id=1rVqH5A01wNlb674u5qEf57Ppe_ldTk5Ni4IuVP8LOzY)
  * Created by Manchester Volunteers \[CodeYourFuture]

### Completed exercises

* [Week 2 - Javascript](https://github.com/hheiress/exercises-js1/tree/master/week-2) (InClass + Homework)
  * Created by Diana Dashkovska \[MigraCode]

## Homework Suggestion

{% hint style="info" %}
Remember copy the Homework to the [Trello ](https://trello.com/b/wl6LgDXD/homework-overview)at the end of the class
{% endhint %}

1. From the [Javascript Module 1 repository](https://github.com/Migracode-Barcelona/javascript-module-1) review and finish all exercises in the folder `week-2/InClass`
2. Go to [The Modern JavaScript Tutorial](https://javascript.info/) and widen your knowledge on [2.12 Loops: while and for](https://javascript.info/while-for)
3. Complete all of the exercises in the folder `week-2/Homework`
4. [Push](https://syllabus.migracode.org/git#commit-and-push-your-changes-to-github) the changes to your repository in Github

## Practice Day (Saturday) <a href="#practice-day-saturday" id="practice-day-saturday"></a>

1. Check together, solve doubts and fix the Homework exercises
2. Go to [CodeWars](https://codewars.com/) and solve as many katas as you can:
   1. [Reversed Strings](https://www.codewars.com/kata/reversed-strings/javascript)
   2. [Remove First and Last Character](https://www.codewars.com/kata/56bc28ad5bdaeb48760009b0)
   3. [Stats: Sum of positive](https://www.codewars.com/kata/5715eaedb436cf5606000381)
   4. [Find the smallest integer in the array](https://www.codewars.com/kata/find-the-smallest-integer-in-the-array/javascript)
   5. [Counting sheep…](https://www.codewars.com/kata/counting-sheep-dot-dot-dot/javascript)
   6. [Grasshopper - Summation](https://www.codewars.com/kata/grasshopper-summation/javascript)
   7. [Stats: Square(n) Sum](https://www.codewars.com/kata/515e271a311df0350d00000f)
   8. [Invert values](https://www.codewars.com/kata/invert-values/train/javascript)
   9. [A Needle in the Haystack](https://www.codewars.com/kata/56676e8fabd2d1ff3000000c/javascript)
   10. [Sum of positive](https://www.codewars.com/kata/sum-of-positive/train/javascript)
   11. [Sum without highest and lowest number](https://www.codewars.com/kata/sum-without-highest-and-lowest-number/train/javascript)
   12. [Count of positives / sum of negatives](https://www.codewars.com/kata/count-of-positives-slash-sum-of-negatives/train/javascript)
3. \[Optional] Complete the exercises in the folder `week-2/Extra`
4. [Push](https://syllabus.migracode.org/git#commit-and-push-your-changes-to-github) the changes to your repository in Github

## Feedback

{% hint style="info" %}
We can always improve thanks to your feedback, you can use this document to send your ideas or suggestions on every week. \
This [document ](https://docs.google.com/document/d/1AzqbpWri4cyeqqf8TVHIovfdRYWOdONsYU01LVvdPvI)will help us to improve Syllabus and this guide
{% endhint %}


---

# 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://volunteers.migracode.org/coding-course/class-information/teaching-instructions/javascript-i/week-2.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.
