-
Notifications
You must be signed in to change notification settings - Fork 0
Piglatin #4
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
base: gh-pages
Are you sure you want to change the base?
Piglatin #4
Conversation
reneemeyer
left a comment
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 start, see comments below. Also before merging please meet with a tutor or myself to correct pull request. It contains other files.
| //take letters until first vowel and put to the end (pop) and add ay. addVowelAy() | ||
|
|
||
| function pigLatin(word) { | ||
| var wordArray = turnToList(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.
don't use var, should be const
| const checkValid = (word) => { | ||
| const arrayLength = word.length; | ||
| for (var i = 0; i < arrayLength; i++) { | ||
| if (isNaN(word[i])) { |
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.
just return the evaluation
|
|
||
| const checkConsonant = (word) => { | ||
| const vowel = ["a", "e", "i", "o", "u"]; | ||
| var i = 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.
should be let
| const checkConsonant = (word) => { | ||
| const vowel = ["a", "e", "i", "o", "u"]; | ||
| var i = 0; | ||
| var found = false; |
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.
should be let
| return false; | ||
| } | ||
|
|
||
| const checkConsonant = (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.
why do you need a check for constant and vowel?
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3