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

Farhana week 9#1035

Open
FarhanaFKhan wants to merge 2 commits intoCodeYourFuture:manchester3from
FarhanaFKhan:farhana-week-9
Open

Farhana week 9#1035
FarhanaFKhan wants to merge 2 commits intoCodeYourFuture:manchester3from
FarhanaFKhan:farhana-week-9

Conversation

@FarhanaFKhan
Copy link
Copy Markdown

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

this.total = 0;
this.items = [];
}
addItem(item){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good 👍

this.balance = 100;
}

make_deposit(moneyIn){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good parameter naming here for moneyIn

make_withdrawl(moneyOut){
if(this.balance > 100){
this.balance = this.balance - moneyOut;
} else {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good check to see if you can make the withdrawal

class MusicPlayer {
// Add your code here
constructor(){
this.playlist = [];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is it possible to have a single array like playList that stores in the information about the title and the artist ? Think of another data type you could use other than a string

constructor(){
this.playlist = [];
this.artists = [];
this.currentTrack = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good - currentTrack is clear to me

}

skip(){
this.currentTrack ++;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

let temperatureDegree = document.querySelector(".temperature-degree");
let locationTimezone = document.querySelector(".location-timezone");
let iconEl = document.querySelector(".icon");
let temperatureSection = document.querySelector(".temperature");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job here - are there any parts of the code you need help with at the moment ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Or bits that you need explaining again

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.

2 participants