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

Farhana week 9 #1035

Open
wants to merge 2 commits into
base: manchester3
Choose a base branch
from

Conversation

FarhanaFKhan
Copy link

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

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

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){

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 {

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

@@ -21,21 +21,60 @@ This means the order the songs are played in will be random, but each song will

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

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;

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 ++;

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");

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 ?

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