Skip to content

[BER-WDFT-012023] aron seiffert #3504

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 2 commits into from

Conversation

binghatch
Copy link

Submission lab-css-recipes-clone

This pull request includes my submission for the lab-javascript-functions-and-arrays.


I am still working on iteration #8 – in German you would say it's a "harte nuss" 🌰 😅 . An updated pull request will follow soon.


-as

Copy link

@matigobbi matigobbi left a comment

Choose a reason for hiding this comment

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

Nice work Aaron!
Keep working and learning 😁 🤓!

} else if (words.length === 1) {
return words[0];
} else {
return words.sort((a, b ) => b.length - a.length)[0];

Choose a reason for hiding this comment

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

Thats smart, i think you can also use Math.max([...words]), and you will get same output

function doesWordExist() {}

function doesWordExist(wordList, searchWord) {
return (wordList.length) ? wordList.includes(searchWord) : null;

Choose a reason for hiding this comment

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

nice use of turnery operator!

@stale
Copy link

stale bot commented Apr 7, 2023

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 7, 2023
@stale
Copy link

stale bot commented Jun 7, 2023

This pull request is closed. Thank you.

@stale stale bot closed this Jun 7, 2023
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