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

Conversation

@NawalC
Copy link

@NawalC NawalC commented Jul 8, 2020

Your Details

Your Name: Nawal
Your City: North West
Your Slack Name: nawalC

Homework Details

Module: js3
Week: 3

Copy link

@Ashaghel Ashaghel left a comment

Choose a reason for hiding this comment

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

Very good job!

console.log(f1())
console.log(y)
console.log(f1()) //undefined - no parameter inside.

Choose a reason for hiding this comment

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

Good work, the issue is there is no return

console.log(y);
```
console.log(y); // x : 10 y is an object and returning its value pair
// ```

Choose a reason for hiding this comment

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

Good answer, double check passing by value vs by reference

// Use console.log() to output everything contained in your cart
console.log(this.currentTotal);

return this.currentTotal;

Choose a reason for hiding this comment

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

Good job!

myCart.addItem("Toilet Roll");
myCart.addItem("Pasta");
myCart.addItem("Eggs");
console.log(myCart.cartContains());

Choose a reason for hiding this comment

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

you don't need to console log the method, it has console log inside, you just need to call it

}

greeting() {
console.log('Hi! I\'m ' + this.personName + '.');

Choose a reason for hiding this comment

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

classy and to the point

return this.accountBalance
}
make_withdrawl(withdraw) {
this.withdraw = withdraw;

Choose a reason for hiding this comment

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

there is a small issue here, the idea is to have a balance and remove from it and add to it, no need to each return !

}
}
// shuffle () {
// let randomSong = playList.length, temporaryValue, this.counterIndex;

Choose a reason for hiding this comment

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

You're so close 🥇

// console.log("there is no songs to play");
this.counterIndex = this.playList.length-1;
}
}

Choose a reason for hiding this comment

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

Good job!

@Ashaghel Ashaghel added the reviewed A mentor has reviewed this PR label Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

reviewed A mentor has reviewed this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants