Skip to content

sorry.. forgot to pull request#3

Open
Denae716 wants to merge 10 commits intoReturn-Ready-2021-JavaScript-Evening:mainfrom
Denae716:main
Open

sorry.. forgot to pull request#3
Denae716 wants to merge 10 commits intoReturn-Ready-2021-JavaScript-Evening:mainfrom
Denae716:main

Conversation

@Denae716
Copy link
Copy Markdown

No description provided.

@kburd kburd self-requested a review December 28, 2020 18:36
Copy link
Copy Markdown

@kburd kburd left a comment

Choose a reason for hiding this comment

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

Make sure you are running the functions before you submit. A lot of these functions had misspellings that prevented me from running initially. (49%)

isEmpty(array){return false;}

append(original, value){return original;}
isEmpty(array){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There is no else case here, your solution does not return if it is empty (-3)

}
}

append(original, value){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is an infinite loop, each time you add an element, the length goes up. This will happen each iteration. (-3)

return original
}

clone(original){return original;}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Returns a string instead of an array (-6)

return array
}

subArray(original, from, to){return original;}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does not compile, from and to are indexed as arrays. from and to are numbers that represent a start and stop indices. (-11)

}
}

fill(original, value){}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should not be adding elements to an array, should be updating the existing values (-11)

indexOf(original, value){return -1;}
}

remove(original, value){return original;}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Close, Hint: indexOf([4,5,6,7,8,9,10], 6) should return 2 (-3)


}

reverse(original){}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does not work, take a look and see if your if statement is correctly locating the value (-11)

}


reverse(original){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Close, but returns a string (-3)

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