Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

Bashir week 7 #1011

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d0eb2ef
added notes to w2-j4
Ashaghel Apr 26, 2020
c30ee0f
Hakona Matata Anthony and Ahmad
Ashaghel Apr 26, 2020
74e3f46
fix minor spelling and grammatical errors
Apr 27, 2020
6fcaeb5
editing exercises for week3 mcr3
Ashaghel May 1, 2020
468db41
Update 5-journey-planner.js
Ashaghel May 2, 2020
6163944
Update 0- Introduction.md
Ashaghel May 2, 2020
9346bcb
added info on every and some to exercise 2
Augs0 May 2, 2020
960c002
fixed formatting
Augs0 May 2, 2020
c5786a9
added info on replace and substring
Augs0 May 2, 2020
eb54bc5
Modify description and add extra tests to exercise week-3/4-eligible-…
zoltan-gal May 2, 2020
191b122
fix syntax
zoltan-gal May 2, 2020
e20bef6
Add extra exercise to week-3/4-eligible-students
zoltan-gal May 2, 2020
7905332
added small note
Ashaghel May 2, 2020
6c489f4
Added more instructions
Ashaghel May 2, 2020
ce4cdb0
changed function name
Ashaghel May 2, 2020
46747c0
Update 6-lane-names.js
Ashaghel May 2, 2020
1422133
formating
Ashaghel May 2, 2020
4feab6b
Add more details and restructure journey planner exercise
zoltan-gal May 2, 2020
349fee5
Reformatting journey planner description
zoltan-gal May 2, 2020
fe6726a
Add extra challange tip to journey planner
zoltan-gal May 2, 2020
9678006
Add examples and tweak descriptions
zoltan-gal May 2, 2020
222a34b
tweak week-3 intro description
zoltan-gal May 2, 2020
ccc11b5
tweak week-3 intro description
zoltan-gal May 2, 2020
7a91d2e
fix text
zoltan-gal May 2, 2020
1a7abaf
Improve examples in ex4
zoltan-gal May 2, 2020
e84f22f
Merge remote-tracking branch 'origin/master' into manchester3
zoltan-gal May 15, 2020
f8f41b0
more info
Ashaghel May 16, 2020
68f6d79
Create forinLoop.js
Ashaghel May 16, 2020
57dc8b0
Select freecodecamp resource list
zoltan-gal May 16, 2020
891b2aa
Add extra exercise and description to writers exercise
zoltan-gal May 16, 2020
e50722e
Add extra exercises to water bottle exercise
zoltan-gal May 16, 2020
02492c9
Remove extra resources recommendations that have not been taught yet
zoltan-gal May 16, 2020
394aab1
Merge branch 'manchester3' of github.com:CodeYourFuture/js-exercises …
zoltan-gal May 16, 2020
1feffbe
Rewrite grocery list exercise
zoltan-gal May 16, 2020
4a1fa48
Fix week-4 exercise issues
zoltan-gal May 16, 2020
a3c1d0c
more reading
Ashaghel May 16, 2020
393cab1
Update 1-freecodecamp.md
Ashaghel May 16, 2020
05218bc
Update extra-homework.md
Ashaghel May 16, 2020
f836b89
Update 1-freecodecamp.md
Ashaghel May 16, 2020
90f6f0b
Update 1-freecodecamp.md
Ashaghel May 16, 2020
a4055ca
Update 1-freecodecamp.md
Ashaghel May 16, 2020
e559c9a
Update 2-writers.js
Ashaghel May 16, 2020
9b87a3e
fix description
zoltan-gal May 17, 2020
793cd96
tweak description
zoltan-gal May 17, 2020
1d25f8e
Update 2-writers.js
May 19, 2020
55efde1
fix wording
zoltan-gal May 20, 2020
27ce362
Rewrite week-5/2-exercises
zoltan-gal May 29, 2020
f555e27
Rewrite week-5/3-project
zoltan-gal May 29, 2020
6053f8e
tweak khanakademy hw descriptions
zoltan-gal May 29, 2020
37bc38e
add extra description to week-5, exercise 3
zoltan-gal May 30, 2020
6409675
fix link
zoltan-gal May 31, 2020
b92dcd4
Merge remote-tracking branch 'origin/master' into manchester3
zoltan-gal Jun 6, 2020
ff6e285
Update week-6 exercise description
zoltan-gal Jun 6, 2020
723a0c2
Submit week 6
bash93 Jul 2, 2020
ff9bb88
Submit week 7
bash93 Jul 2, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ After you've watched these videos I'd like you to answer these questions

<!-- Write your answer here -->

Problem solving

## 2. When trying to solve a challenge, what should you do first?

<!-- Write your answer here -->

Define the problem

## 3. What should you do if you get stuck?

<!-- Write your answer here -->

Read the problem several times and write a pseudocode

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good - always try to really understand the problem you're trying to solve and then some pseudocode is good for making you think about the code you need to write

11 changes: 6 additions & 5 deletions week-7/Homework/mandatory/1-debugging-practice/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ function submit() {
alert("Please fill all fields!");
return false;
} else {
let book = new Book(title.value, title.value, pages.value, check.checked);
let book = new Book(title.value, author.value, pages.value, check.checked);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

library.push(book);
myLibrary.push(book);
render();
}
}
Expand All @@ -54,7 +55,7 @@ function render() {
let table = document.getElementById("display");
let rowsNumber = table.rows.length;
//delete old table
for (let n = rowsNumber - 1; n > 0; n-- {
for (let n = rowsNumber - 1; n > 0; n--) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

table.deleteRow(n);
}
//insert updated row and cells
Expand All @@ -76,7 +77,7 @@ function render() {
changeBut.className = "btn btn-success";
cell4.appendChild(changeBut);
let readStatus = "";
if (myLibrary[i].check == false) {
if (myLibrary[i].check === true) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good 👍

readStatus = "Yes";
} else {
readStatus = "No";
Expand All @@ -89,12 +90,12 @@ function render() {
});

//add delete button to every row and render again
let delButton = document.createElement("button");
let delBut = document.createElement("button");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good 👍

delBut.id = i + 5;
cell5.appendChild(delBut);
delBut.className = "btn btn-warning";
delBut.innerHTML = "Delete";
delBut.addEventListener("clicks", function () {
delBut.addEventListener("click", function () {
alert(`You've deleted title: ${myLibrary[i].title}`);
myLibrary.splice(i, 1);
render();
Expand Down