Skip to content
This repository has been 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

Bashir week 7 #1011

wants to merge 55 commits into from

Conversation

bash93
Copy link

@bash93 bash93 commented Jul 2, 2020

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

@@ -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 👍

@@ -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 👍

## 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

@@ -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.

👍

@@ -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.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants