fix(curriculum): update references to 'coach' to 'headCoach' in user story description (#62312)

This commit is contained in:
Prateek Bisht
2025-09-22 23:20:22 +05:30
committed by GitHub
parent f5b2774043
commit ec36cf60cc

View File

@@ -23,7 +23,7 @@ In this lab, you will build a set of football team cards. The user should be abl
1. The `name` property should contain the name of the player as a string.
1. The `position` property should have one of the following values: `"forward"`, `"midfielder"`, `"defender"`, or `"goalkeeper"`.
1. The `isCaptain` property should have value of a boolean. One of the players should have their `isCaptain` property set to `true`.
1. You should display the `coach`, `team` and `year` values on the page. These values should be displayed in the HTML elements with the `id` values of `head-coach`, `team` and `year`.
1. You should display the `headCoach`, `team` and `year` values on the page. These values should be displayed in the HTML elements with the `id` values of `head-coach`, `team` and `year`.
1. You should display the players data on the page inside the `#player-cards` element, each player should be displayed in a `div` with class of `player-card`, and nested in it, an `h2` containing the name of the player, and `(Captain)` in case of the player being captain, and a `p` containing `Position:` and the position of the player.
```html
@@ -106,7 +106,7 @@ const listOfCaptains = footballTeam.players.filter(({isCaptain}) => isCaptain);
assert.lengthOf(listOfCaptains, 1);
```
You should display the `coach`, `team` and `year` values from the `footballTeam` object in the HTML elements with the `id` values of `head-coach`, `team` and `year`.
You should display the `headCoach`, `team` and `year` values from the `footballTeam` object in the HTML elements with the `id` values of `head-coach`, `team` and `year`.
```js
const teamElement = document.querySelector('.team-stats #team');