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

WDFT REMOTE MAR22 Fevi#2932

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
fevi-ro wants to merge1 commit intoironhack-labs:masterfromfevi-ro:master
Closed

Conversation

fevi-ro
Copy link

I couldn't solve Iteration#4 Level 2 with a function.
Iteration#5 was also a bit tricky.

num += number;
}
return num / numbersAvg.length;
};

Choose a reason for hiding this comment

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

Really good work, Fevi!

const wordsArr = ['seat', 'correspond', 'linen', 'motif', 'hole', 'smell', 'smart', 'chaos', 'fuel', 'palace'];

function averageWordLength() { }
averageWordLength = wordsArr.join('').length / wordsArr.length
console.log(averageWordLength);

Choose a reason for hiding this comment

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

I think here you just had a wrong thinking, if you look at the solution in the Student Portal, then you will understand it quickly!

];

function uniquifyArray() {}
function uniquifyArray(wordsUnique) {
const uniqueArray = [];

Choose a reason for hiding this comment

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

here you miss the if condition:

if (wordsUnique.length == 0){        return null    }


const uniqueNames = uniquifyArray(wordsUnique);
console.log(uniqueNames);

Choose a reason for hiding this comment

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

For the last tasks I would say: look at the solution in your own time and if you have any questions, ask Karina, Marian or me (Joanne).

function doesWordExist(wordsFind, word) {
if (wordsFind.length === 0) return null;
for (let el of wordsFind) {
if (el === 'disobedience') return true;

Choose a reason for hiding this comment

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

But one more thing: you never know which words you really have in the array. So you can't compare with specific words. It should work for any array of words.

@stale
Copy link

stalebot commentedApr 29, 2022

This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stalestalebot added the stale labelApr 29, 2022
@stale
Copy link

stalebot commentedMay 1, 2022

This pull request is closed. Thank you.

@stalestalebot closed thisMay 1, 2022
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
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@fevi-ro@TA-Remote

[8]ページ先頭

©2009-2025 Movatter.jp