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

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

fevi-ro
Copy link

@fevi-ro fevi-ro commented Mar 29, 2022

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

stale bot commented Apr 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.

@stale stale bot added the stale label Apr 29, 2022
@stale
Copy link

stale bot commented May 1, 2022

This pull request is closed. Thank you.

@stale stale bot closed this May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.