mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-13 21:15:35 +08:00
fix(curriculum): change 'display' to 'return' in lab-voting-system challenge (#62305)
This commit is contained in:
parent
923e6c4c7d
commit
0ce17abdd4
@ -33,7 +33,7 @@ In this lab, you will build a voting system that uses `Map` to create a poll and
|
||||
|
||||
- If the `option` exists, the function should check if the `voterId` has already voted for this `option`.
|
||||
|
||||
- If the voter has already voted, the function should display the message `Voter <voterId> has already voted for "<option>".`
|
||||
- If the voter has already voted, the function should return the message `Voter <voterId> has already voted for "<option>".`
|
||||
|
||||
- If the voter has not voted, `voterId` should be added to the `Set` of `voters` for this option. The function should return the message `Voter <voterId> voted for "<option>".`
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user