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
NotificationsYou must be signed in to change notification settings

coding-in-public/vanilla-javascript-challenges

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Here goes the short description of the challenge...

EASIER CHALLENGES

using thepeeps array.

  1. Count the number of people in thepeeps array.
  2. List full names of people in a new array.
  3. Returntrue if everyone is older than 24.
  4. Returntrue if at least one person is younger than 26.
  5. Return a new array calledyoungPeeps of allpeeps less than 30.
  6. Sort thepeeps by age from oldest to youngest in an array calledsortedPeeps.
  7. Create a new array calledfirstNamePeeps with only the first names of thepeeps.

HARDER CHALLENGES

using thecomments object andpeeps array.

  1. List all the comments in an array of strings calledcommentsArray.
  2. Return all comments with the word"love" in the comment in a new array calledloveComments.
  3. List all the comments in an array of strings calledsortedCommentsArray from lowest rating to highest rating. Ignore comments without a rating.
  4. Return a new object calledcommentObj with the comment id as a key and the comment text as the value.
  5. Return a new object calledgroupedRatings with the rating as a key and an array of comments with that rating as the value. Ignore comments without a rating.
  6. Return the average rating of all comments.
  7. Group all comments by the user who made the comment. Return a new object calledgroupedPeepComments with the user’s first and last name as a string key. The value of each object should be an array of comment objects by the person.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp