Skip to content

London | 26-SDC-Mar | Khilola Rustamova| Sprint 2 |jq #383

Open
HilolaRustam wants to merge 1 commit intoCodeYourFuture:mainfrom
HilolaRustam:jq-exercises
Open

London | 26-SDC-Mar | Khilola Rustamova| Sprint 2 |jq #383
HilolaRustam wants to merge 1 commit intoCodeYourFuture:mainfrom
HilolaRustam:jq-exercises

Conversation

@HilolaRustam
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

Jq exercise is done.

Questions

@HilolaRustam HilolaRustam 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 16, 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

Comment thread jq/script-05.sh

# The input for this script is the scores.json file.
# TODO: Write a command to output the names of each player, as well as their city.
jq -r '.[]|[.name, .city]|join(", ")' scores.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Better to consistently leave a space around operators such as |.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. 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

Complete Volunteer to add when work is complete and all review comments have been addressed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants