Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f4732c1
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
f1711cc
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
7a92916
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
df0429b
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
8962fe7
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
c618376
Update jl-errors-formatting.md
Efiloglu Jun 16, 2019
9542e4d
Update jl-variables-swaps.md
Efiloglu Jun 16, 2019
861fa80
Update fcc-basic-js-pt-1.md
Efiloglu Jun 16, 2019
14c8017
Update fcc-basic-js-pt-1.md
Efiloglu Jun 16, 2019
c99b392
Update jl-functions.md
Efiloglu Jun 23, 2019
a98c4f7
Update jl-variables-multiple.md
Efiloglu Jun 23, 2019
792620b
Merge pull request #1 from be-hacking-hyf/master
Efiloglu Jun 26, 2019
18c26e3
Update jl-loop-refactors.md
Efiloglu Jun 26, 2019
41d3d7a
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
8e80421
Update jl-errors-const.md
Efiloglu Jun 26, 2019
3e86ca0
Update jl-errors-objects.md
Efiloglu Jun 26, 2019
d8047ea
Update jl-functions-ref-type-args.md
Efiloglu Jun 26, 2019
c54a745
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
b0f04d0
Update jl-reference-types.md
Efiloglu Jun 26, 2019
3fa124c
Update jl-variables-sentences-2.md
Efiloglu Jun 26, 2019
8a071ee
Update js-tracing-conditionals.md
Efiloglu Jun 26, 2019
f028ede
Update README.md
Efiloglu Jun 26, 2019
29d0749
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
cb440dd
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
8c28897
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
1696afe
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
b369edc
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
b91490b
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
fc502b8
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
7b1bf67
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
afbb13f
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
d556eab
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
6b61641
Update jl-variables-sentences-1.md
Efiloglu Jun 26, 2019
d4a2e90
Update js-tracing-conditionals.md
Efiloglu Jun 26, 2019
56b7fb4
Update README.md
Efiloglu Jun 26, 2019
edcfe9c
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
a659158
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
65a18f1
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
dd715e0
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
68fcf02
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
7b83df6
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
ffe8529
Update jl-errors-arrays.md
Efiloglu Jun 26, 2019
18dcd60
Update jl-errors-const.md
Efiloglu Jun 26, 2019
7a5a3f6
Update jl-errors-objects.md
Efiloglu Jun 26, 2019
e737f77
Update README.md
Efiloglu Jun 29, 2019
51d2428
Update README.md
KevinTss Jul 7, 2019
6b1ee9f
Update jl-replicate-loose-equality.md
Efiloglu Jul 8, 2019
e8630c7
Update jl-truthiness.md
Efiloglu Jul 8, 2019
0fc6cbc
Update jl-expanding-expressions.md
Efiloglu Jul 8, 2019
9dd7027
Update jl-functions-as-arguments.md
Efiloglu Jul 8, 2019
b693766
Update jl-callstack.md
Efiloglu Jul 8, 2019
96050a5
Update jl-test-cases.md
Efiloglu Jul 8, 2019
3431491
Update jl-operator-precedence.md
Efiloglu Jul 8, 2019
07a1a0d
Update README.md
Efiloglu Jul 8, 2019
f18c3cf
Update jl-callstack.md
Efiloglu Jul 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion week-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

---


## submission instructions

| emoji | who uses it | meaning |
Expand Down
8 changes: 8 additions & 0 deletions week-1/fcc-basic-js-pt-1.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
> complete [the basic JS exercises](https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript) through _Counting Cards_ & paste each of your solutions into this file. This will allow you to use your FCC exercises as a study reference later on
> [completed example](https://github.com/AlfiYusrina/hyf-javascript1/blob/master/week1/freecode_camp_solutions.MD)
[PHY] (http://www.pythontutor.com/javascript.html#code=//%20this%20is%20an%20in-line%20comment%20%3B%29%0A/*%20This%20is%20a%20%0Amulti-line%20coment%20%3A%29%20*/%0A&mode=edit&origin=opt-frontend.js&py=js&rawInputLstJSON=%5B%5D)

2 types of comment line

```js
// this is an in-line comment ;)
/* This is a
multi-line coment :) */
```
39 changes: 38 additions & 1 deletion week-1/jl-errors-formatting.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
> paste [this markdown](https://raw.githubusercontent.com/janke-learning/error-exercises/master/formatting.md) into this file and fix the errors!
> [completed example](https://github.com/AlfiYusrina/hyf-javascript1/blob/master/week1/errors_solutions.MD) (of the old version)
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)

# Formatting Errors

It's easy to miss the little things, even when you're an experienced programmer! Using a linter will help enormously avoiding simple formatting errors, but it's still great practice to learn how to spot them yourself. This skill build your confidence writing code from a blank page and is important for those times when you're coding outside of your normal editor.

### exercises
* [improper end of statement](#improper-end-of-statement)

---

## improper end of statement
broken code:
```js
let a = 1:
```
error message:
```
this is a error message
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
let a = 1;
```

your notes:

:+1:
[TOP](#formatting-errors)


___
___
### <a href="http://janke-learning.org" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/50098409-22575780-021c-11e9-99e1-962787adaded.png" width="40" height="40"></img> Janke Learning</a>
221 changes: 220 additions & 1 deletion week-1/jl-functions.md

Large diffs are not rendered by default.

38 changes: 37 additions & 1 deletion week-1/jl-variables-multiple.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
> paste [this markdown of exercises](https://raw.githubusercontent.com/janke-learning/variable-exercises/master/swaps.md) into this file and complete the exercises!
> references: [javascript.info variables](https://javascript.info/variables), [variables and hoisting](https://github.com/janke-learning/variables-and-hoisting)
> references: [javascript.info variables](https://javascript.info/variables), [variables and hoisting](https://github.com/janke-learning/variables-and-hoisting)
# Swaps

You'll be given a bunch of variables with the wrong value assigned and a temporary variable you can use for storing values. Your task is to get the right values into each variable in as few steps as possible by shuffling them around.

### example solutions
1. the first: [pytut](https://goo.gl/mk9xd3), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22b%22%2C%20b%20%3D%20%22a%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20b%3B%0Ab%20%3D%20a%3B%0Aa%20%3D%20_%3B)
1. the second: [pytut](https://goo.gl/BWKuGm), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22c%22%2C%20b%20%3D%20%22a%22%2C%20c%20%3D%20%22b%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20c%3B%0Ac%20%3D%20a%3B%0Aa%20%3D%20b%3B%0Ab%20%3D%20_%3B%0A)
1. the third: [pytut](https://goo.gl/jeBHWU), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22d%22%2C%20b%20%3D%20%22a%22%2C%20c%20%3D%20%22b%22%2C%20d%20%3D%20%22c%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20b%3B%0Ab%20%3D%20c%3B%0Ac%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A)
1. the fourth: [pytut](https://goo.gl/C8t81i), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22z%22%2C%20b%20%3D%20%22y%22%2C%20c%20%3D%20%22x%22%2C%20d%20%3D%20%22w%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A_%20%3D%20b%3B%0Ab%20%3D%20c%3B%0Ac%20%3D%20_%3B%0A)
1. the fifth: [pytut](https://goo.gl/KokxwL), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22z%22%2C%20b%20%3D%20%22y%22%2C%20c%20%3D%20%22x%22%2C%20d%20%3D%20%22w%22%2C%20e%20%3D%20%22v%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20e%3B%0Ae%20%3D%20_%3B%0A_%20%3D%20b%3B%0Ab%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A)

### challenges
1. [the first](https://goo.gl/k9jdZy)
```js
// your solution here
```
1. [the second](https://goo.gl/KvayUU)
```js
// your solution here
```
1. [the third](https://goo.gl/WXXtV7)
```js
// your solution here
```
1. [the fourth](https://goo.gl/nTA1DG)
```js
// your solution here
```
1. [the fifth](https://goo.gl/gDaKNi)
```js
// your solution here
```

___
___
### <a href="http://janke-learning.org" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/50098409-22575780-021c-11e9-99e1-962787adaded.png" width="40" height="40"></img> Janke Learning</a>
38 changes: 37 additions & 1 deletion week-1/jl-variables-swaps.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
> paste [this markdown of exercises](https://raw.githubusercontent.com/janke-learning/variable-exercises/master/multiple-assignments.md) into this file and complete the exercises!
> references: [javascript.info variables](https://javascript.info/variables), [variables and hoisting](https://github.com/janke-learning/variables-and-hoisting)
> references: [javascript.info variables](https://javascript.info/variables), [variables and hoisting](https://github.com/janke-learning/variables-and-hoisting)
# Swaps

You'll be given a bunch of variables with the wrong value assigned and a temporary variable you can use for storing values. Your task is to get the right values into each variable in as few steps as possible by shuffling them around.

### example solutions
1. the first: [pytut](https://goo.gl/mk9xd3), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22b%22%2C%20b%20%3D%20%22a%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20b%3B%0Ab%20%3D%20a%3B%0Aa%20%3D%20_%3B)
1. the second: [pytut](https://goo.gl/BWKuGm), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22c%22%2C%20b%20%3D%20%22a%22%2C%20c%20%3D%20%22b%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20c%3B%0Ac%20%3D%20a%3B%0Aa%20%3D%20b%3B%0Ab%20%3D%20_%3B%0A)
1. the third: [pytut](https://goo.gl/jeBHWU), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22d%22%2C%20b%20%3D%20%22a%22%2C%20c%20%3D%20%22b%22%2C%20d%20%3D%20%22c%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20b%3B%0Ab%20%3D%20c%3B%0Ac%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A)
1. the fourth: [pytut](https://goo.gl/C8t81i), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22z%22%2C%20b%20%3D%20%22y%22%2C%20c%20%3D%20%22x%22%2C%20d%20%3D%20%22w%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A_%20%3D%20b%3B%0Ab%20%3D%20c%3B%0Ac%20%3D%20_%3B%0A)
1. the fifth: [pytut](https://goo.gl/KokxwL), [parsons](https://janke-learning.github.io/parsonizer/?snippet=let%20a%20%3D%20%22z%22%2C%20b%20%3D%20%22y%22%2C%20c%20%3D%20%22x%22%2C%20d%20%3D%20%22w%22%2C%20e%20%3D%20%22v%22%3B%0Alet%20_%20%3D%20'%20'%3B%0A%0A_%20%3D%20a%3B%0Aa%20%3D%20e%3B%0Ae%20%3D%20_%3B%0A_%20%3D%20b%3B%0Ab%20%3D%20d%3B%0Ad%20%3D%20_%3B%0A)

### challenges
1. [the first](https://goo.gl/k9jdZy)
```js
// your solution here
```
1. [the second](https://goo.gl/KvayUU)
```js
// your solution here
```
1. [the third](https://goo.gl/WXXtV7)
```js
// your solution here
```
1. [the fourth](https://goo.gl/nTA1DG)
```js
// your solution here
```
1. [the fifth](https://goo.gl/gDaKNi)
```js
// your solution here
```

___
___
### <a href="http://janke-learning.org" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/50098409-22575780-021c-11e9-99e1-962787adaded.png" width="40" height="40"></img> Janke Learning</a>
26 changes: 13 additions & 13 deletions week-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

| | your Emoji | your comments | coach emoji | coach comments |
| --- | --- | --- | --- | --- |
| :seedling: __[fcc: finish js basics](./fcc-basic-js-pt-2.md) | | | | |
| :dash: __[janke: tracing conditionals](./jl-tracing-conditionals.md) | | | | |
| :seedling: __[javascript.info: loops](./jsinfo-loops.md) | | | | |
| :dash: __[janke: loop refactors](./jl-loop-refactors.md) | | | | |
| :seedling: __[fcc: data structures](./fcc-data-structures.md) | | | | |
| :seedling: __[janke: errors const](./jl-errors-const.md) | | | | |
| :seedling: __[janke: errors arrays](./jl-errors-arrays.md) | | | | |
| :seedling: __[janke: errors objects](./jl-errors-objects.md) | | | | |
| :seedling: __[javascript.info: objects](./jsinfo-objects.md) | | | | |
| :dash: __[janke: reference types](./jl-reference-types.md) | | | | |
| :fire: __[janke: ref-type arguments](./jl-functions-ref-type-args.md) | | | | |
| :dash: __[janke: sentences w/o temps](./jl-variables-sentences-1.md) | | | | |
| :fire: __[janke: sentences w/ temps](./jl-variables-sentences-2.md) | | | | |
| :seedling: __[fcc: finish js basics](./fcc-basic-js-pt-2.md) |:seedling:| | | |
| :dash: __[janke: tracing conditionals](./js-tracing-conditionals.md) | :+1: | | | |
| :seedling: __[javascript.info: loops](./jsinfo-loops.md) |:seedling:| | | |
| :dash: __[janke: loop refactors](./jl-loop-refactors.md) |:+1: | | | |
| :seedling: __[fcc: data structures](./fcc-data-structures.md) |:seedling:| | | |
| :seedling: __[janke: errors const](./jl-errors-const.md) |:seedling:| | | |
| :seedling: __[janke: errors arrays](./jl-errors-arrays.md) |:seedling:| | | |
| :seedling: __[janke: errors objects](./jl-errors-objects.md) |:seedling:| | | |
| :seedling: __[javascript.info: objects](./jsinfo-objects.md) |:seedling:| | | |
| :dash: __[janke: reference types](./jl-reference-types.md) |:+1: | | | |
| :fire: __[janke: ref-type arguments](./jl-functions-ref-type-args.md) |:+1: | | | |
| :dash: __[janke: sentences w/o temps](./jl-variables-sentences-1.md) |:+1: | | | |
| :fire: __[janke: sentences w/ temps](./jl-variables-sentences-2.md) |:+1: | | | |



Expand Down
93 changes: 92 additions & 1 deletion week-2/jl-errors-arrays.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,94 @@
> paste [this markdown](https://raw.githubusercontent.com/janke-learning/error-exercises/master/arrays.md) into this file and fix the errors!
> [completed example](https://github.com/AlfiYusrina/hyf-javascript1/blob/master/week1/errors_solutions.MD) (of the old version)
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)
# Array Errors


* [missing closing bracket](#missing-closing-bracket)
* [missing comma](#missing-comma)
* [poorly nested](#poorly-nested)

---

## missing closing bracket

broken code:
```js
let myArray = [1, 2, 3;
```
error message:
``` js
alert("Unexpected token!");
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
let myArray = [1, 2, 3];
```
your notes:

[TOP](#array-errors)

---

## missing comma

broken code:
```js
let myArray = [1, 2 3];
```
error message:
``` js
alert("Unexpected number!");
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
let myArray = [1, 2, 3];
```
your notes:

[TOP](#array-errors)

---

## poorly nested

broken code:
```js
let myArray = [
[1, 2, 3]
[4, 5, 6]
[7, 8, 9]
];
```
error message:
```js
alert("Cannot read property '9' of undefined!");
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
let myArray = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
];
```
your notes:

[TOP](#array-errors)


___
___
### <a href="http://janke-learning.org" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/50098409-22575780-021c-11e9-99e1-962787adaded.png" width="40" height="40"></img> Janke Learning</a>
91 changes: 90 additions & 1 deletion week-2/jl-errors-const.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,91 @@
> paste [this markdown](https://raw.githubusercontent.com/janke-learning/error-exercises/master/const.md) into this file and fix the errors!
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)
> references: [errors & life-cycle](https://github.com/janke-learning/errors-and-life-cycle), [exercise repo](https://github.com/janke-learning/errors)
# Variable Errors


### exercises
* [missing variable name](#missing-variable-name)
* [reassigning to constant](#reassigning-to-constant)
* [unassigned const declaration](#unassigned-const-declaration)

---

### missing variable name

broken code:
```js
const = 5;
```
error message:
```js
Unexpected token =
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
const x = 5;
```
your notes:

[TOP](#variable-errors)

---


## reassigning to constant

broken code:
```js
const a = 9;
a = 0;
```
error message:
```js
Assignment to constant variable.
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
const a = 9;
const b = 0;
```
your notes:

[TOP](#variable-errors)

---


## unassigned const declaration

broken code:
```js
const a;
a = 0;
```
error message:
```js
Missing initializer in const declaration
```
classification:
* creation phase or execution phase ?
* syntax or semanitc ?

the fix:
```js
const a = 0;
```
your notes:

[TOP](#variable-errors)

___
___
### <a href="http://janke-learning.org" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/50098409-22575780-021c-11e9-99e1-962787adaded.png" width="40" height="40"></img> Janke Learning</a>

Loading