-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stef -- Carets #32
base: master
Are you sure you want to change the base?
Stef -- Carets #32
Conversation
JS ScrabbleWhat We're Looking For
|
Z: 10 | ||
}; | ||
|
||
|
||
const Scrabble = { | ||
score: function(word) { |
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.
You can also write this like:
score() {
|
||
totalScore() { | ||
let total = 0; | ||
for (let word of this.plays) { |
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.
This works well, using forEach
is preferred however.
|
||
highestScoreFrom: function(arrayOfWords) { | ||
let wordOne = arrayOfWords[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.
This only seems to work with an array of 2 words?
@SesameSeeds
JS Scrabble
Congratulations! You're submitting your assignment!
Comprehension Questions