-
-
Notifications
You must be signed in to change notification settings - Fork 458
Farhana week 9 #1035
base: manchester3
Are you sure you want to change the base?
Farhana week 9 #1035
Conversation
this.total = 0; | ||
this.items = []; | ||
} | ||
addItem(item){ |
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 👍
this.balance = 100; | ||
} | ||
|
||
make_deposit(moneyIn){ |
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 parameter naming here for moneyIn
make_withdrawl(moneyOut){ | ||
if(this.balance > 100){ | ||
this.balance = this.balance - moneyOut; | ||
} else { |
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 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 = []; |
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.
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; |
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 - currentTrack
is clear to me
} | ||
|
||
skip(){ | ||
this.currentTrack ++; |
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.
👍
let temperatureDegree = document.querySelector(".temperature-degree"); | ||
let locationTimezone = document.querySelector(".location-timezone"); | ||
let iconEl = document.querySelector(".icon"); | ||
let temperatureSection = document.querySelector(".temperature"); |
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 job here - are there any parts of the code you need help with at the moment ?
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.
Or bits that you need explaining again
Your Details
Your Name:
Your City:
Your Slack Name:
Homework Details
Module:
Week: