Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FTRMT052023] marySueMeissner-eirikKlebo#2647

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
MarySueMe wants to merge113 commits intoironhack-labs:masterfromMarySueMe:master

Conversation

MarySueMe
Copy link

We worked on this assignment together.

fontcubertaand others added30 commitsJanuary 10, 2017 17:49
…best-ever/masterupdated tests w/ correct return values for empty arrays
ross-uand others added22 commitsApril 13, 2022 10:36
…iteration-41-insructionsUpdate the iteration 4.1 instructions
…use-jasmineUpdate LAB - use Jasmine for testing
Update bonus iteration 3.2 instructions to align it with the preceding content by removing mention of _refactoring_ and _polymorphism_. The iteration in the current state doesn't allow for efficient practice of refactoring. As well, polymorphism is an OOP concept applied to classes and methods, and therefore it is not suitable to have it mentioned here.
…ration-3-2Revise bonus iteration 3.2 - align with preceding materials
Copy link

@TA-RemoteTA-Remote left a comment

Choose a reason for hiding this comment

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

  • Good work and nice to see that for some iterations you had more than one solution

index.js Outdated
//Bonus 2 (Don´t know how to remove space in between)

let phraseToCheck = "taco cat";
let phraseToCheckTrimmed = phraseToCheck.trim();

Choose a reason for hiding this comment

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

The .trim() removes the white space from start and end, that's why it didn't solve your problem here.

index.js Outdated
function getWordCount(str) {
return str.split(" ").filter(function (n) {
return n != "";
}).length;

Choose a reason for hiding this comment

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

That function gets the job done, but could you rewrite that using only afor loop? You could use a similar logic in the palindrome

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

@TA-RemoteTA-RemoteTA-Remote left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

15 participants
@MarySueMe@TA-Remote@fontcuberta@nizaroni@ta-web-mad@papuarza@mc100s@sandrabosk@mjarraya@josecarneiro@abernier@Tzikas@ironhack-edu@ross-u@tawebbcn

[8]ページ先頭

©2009-2025 Movatter.jp