Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

completed first funtion #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

completed first funtion #15

wants to merge 1 commit into from

Conversation

123lk
Copy link

@123lk 123lk commented Jan 27, 2018

No description provided.

@123lk
Copy link
Author

123lk commented Jan 27, 2018

comment

@@ -3,6 +3,8 @@ function removeMiddle( words ){
// return a new array containing only the middle word
// the words array should no longer contain the middle word
// hint: splice
var middleIndex = Math.floor(words.length / 2)
return words.splice(middleIndex, 1)
Copy link
Author

Choose a reason for hiding this comment

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

test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant