-
-
Notifications
You must be signed in to change notification settings - Fork 458
Bashir week 7 #1011
base: master
Are you sure you want to change the base?
Bashir week 7 #1011
Conversation
to follow previously sent common practice and instructions fixed some typos
Minor changes to make language consistent and simplify it where needed.
@@ -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"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good 👍
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good 👍
## 3. What should you do if you get stuck? | ||
|
||
<!-- Write your answer here --> | ||
|
||
Read the problem several times and write a pseudocode |
There was a problem hiding this comment.
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
@@ -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--) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Your Details
Your Name:
Your City:
Your Slack Name:
Homework Details
Module:
Week: