Skip to content

Comments

Tim Zoltie#212

Open
tzoltie wants to merge 2 commits intoboolean-uk:mainfrom
tzoltie:main
Open

Tim Zoltie#212
tzoltie wants to merge 2 commits intoboolean-uk:mainfrom
tzoltie:main

Conversation

@tzoltie
Copy link

@tzoltie tzoltie commented Mar 1, 2024

No description provided.

Comment on lines +1 to +7
const letterValueOne = ['a', 'e', 'i', 'o', 'u', 'l', 'n', 'r', 's', 't']
const letterValueTwo = ['d', 'g']
const letterValueThree = ['b', 'c', 'm', 'p']
const letterValueFour = ['f', 'h', 'v', 'w', 'y']
const letterValueFive = ['k']
const letterValueEight = ['j', 'x']
const letterValueTen = ['q', 'z']
Copy link
Contributor

Choose a reason for hiding this comment

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

const scores = {
  'a': 1,
  'b': 3
}

for (let i = 0; i < letterValueOne.length; i++) {
const pointCharacter = letterValueOne[i]
if (character === pointCharacter) {
result = true
Copy link
Contributor

Choose a reason for hiding this comment

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

break;

Copy link
Contributor

Choose a reason for hiding this comment

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

return true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants