Skip to content

NW | 26-SDC-Mar | TzeMing Ho | Sprint 2 | jq exercises#389

Open
TzeMingHo wants to merge 1 commit intoCodeYourFuture:mainfrom
TzeMingHo:coursework/jq-exercises
Open

NW | 26-SDC-Mar | TzeMing Ho | Sprint 2 | jq exercises#389
TzeMingHo wants to merge 1 commit intoCodeYourFuture:mainfrom
TzeMingHo:coursework/jq-exercises

Conversation

@TzeMingHo
Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have completed the interesting jq exercises.

@TzeMingHo TzeMingHo added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 19, 2026
Copy link
Copy Markdown

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Your solution looks good.

You may want to check out these alternatives (especially those that use string interpolation):
https://github.com/CodeYourFuture/Module-Tools/tree/solutions/jq

I only have one question.

Comment thread jq/script-09.sh
# Your output should contain 6 lines, each with one word and one number on it.
# The first line should be "Ahmed 15" with no quotes.

jq -r '.[] | [.name, (.scores | reduce .[] as $score (0; . + $score))] | join(" ")' ./scores.json No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not use add?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants