From c3dcec1ac7da8724542664ea964810a64f369476 Mon Sep 17 00:00:00 2001 From: Gary Yeung <5206130+garyeung@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:08:39 +0800 Subject: [PATCH] fix(curriculum): em dash adjusting (#63901) --- .../68eaa3593b6ffd019d772a1f.md | 12 +++++++++--- .../68e4276483b0c71658aab1d0.md | 4 ++-- .../68e4276483b0c71658aab1d1.md | 4 ++-- .../68e4276483b0c71658aab1d2.md | 4 ++-- .../68e4276483b0c71658aab1d3.md | 4 ++-- .../68f1179eaea3bb59ba434386.md | 2 +- .../68f3f3d65d51d80ac0b412fc.md | 6 +++--- .../68f3f5ca1d2a490c97f14f03.md | 8 ++++---- .../68f3f890010c870e17bbe754.md | 4 ++-- .../68f405c8c9df44132c8fe1bb.md | 4 ++-- .../68f40925d810ae14b2d5a169.md | 8 ++++---- 11 files changed, 33 insertions(+), 27 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-quincys-job-tips/68eaa3593b6ffd019d772a1f.md b/curriculum/challenges/english/blocks/workshop-quincys-job-tips/68eaa3593b6ffd019d772a1f.md index 9de583115bd..5dfccacac4f 100644 --- a/curriculum/challenges/english/blocks/workshop-quincys-job-tips/68eaa3593b6ffd019d772a1f.md +++ b/curriculum/challenges/english/blocks/workshop-quincys-job-tips/68eaa3593b6ffd019d772a1f.md @@ -7,7 +7,9 @@ dashedName: step-9 # --description-- -Below the block quotation element, add a paragraph element with the text `—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]`. +Below the block quotation element, add a paragraph element with the text `—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]`. + +`—` is an HTML entity that represents an em dash `—`. # --hints-- @@ -17,11 +19,15 @@ You should have a `p` element below the `blockquote` element. assert.exists(document.querySelector('section:first-of-type > blockquote + p')); ``` -Your `p` element should have the text `—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]`. +Your `p` element should have the text `—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]`. ```js const pEl = document.querySelector('section:first-of-type > blockquote + p'); -assert.equal(pEl?.innerText.trim(), '—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]'); +const html = pEl?.innerHTML.trim(); +assert.oneOf(html, [ + '—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]', + '—Quincy Larson, How to Learn to Code and Get a Developer Job [Full Book]' +]); ``` # --seed-- diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d0.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d0.md index 6e23b218fe9..1209e3f60a6 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d0.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d0.md @@ -54,11 +54,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d1.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d1.md index 2e396338d27..0907a1e4bca 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d1.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d1.md @@ -68,11 +68,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d2.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d2.md index 276b954ad89..7e8557d9d5e 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d2.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d2.md @@ -86,11 +86,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); const upperCaseInput = cleanedInput.toUpperCase(); diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d3.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d3.md index 6eb8f7db9a8..4304b099340 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d3.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68e4276483b0c71658aab1d3.md @@ -54,11 +54,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); const upperCaseInput = cleanedInput.toUpperCase(); diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f1179eaea3bb59ba434386.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f1179eaea3bb59ba434386.md index 09ede6ce73b..379195d82cb 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f1179eaea3bb59ba434386.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f1179eaea3bb59ba434386.md @@ -52,7 +52,7 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f3d65d51d80ac0b412fc.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f3d65d51d80ac0b412fc.md index 04ec622261b..b9292eb5fe1 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f3d65d51d80ac0b412fc.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f3d65d51d80ac0b412fc.md @@ -9,7 +9,7 @@ dashedName: step-7 Now it is time to see the results of trimming whitespace at the beginning of the string. -Below your `trimmedStart` variable, add a `console.log()` with the string `"After using the trimStart() method — leading spaces removed:"`. +Below your `trimmedStart` variable, add a `console.log()` with the string `"After using the trimStart() method, leading spaces removed:"`. Then below that `console.log()`, add another `console.log()` with the `trimmedStart` variable. @@ -22,10 +22,10 @@ const getLogs = () => spy.calls.map(call => call?.[0]); # --hints-- -You should log the string `"After using the trimStart() method — leading spaces removed:"` to the console. +You should log the string `"After using the trimStart() method, leading spaces removed:"` to the console. ```js -assert.equal(getLogs()[4], "After using the trimStart() method — leading spaces removed:"); +assert.equal(getLogs()[4], "After using the trimStart() method, leading spaces removed:"); ``` You should log the `trimmedStart` variable to the console. diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f5ca1d2a490c97f14f03.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f5ca1d2a490c97f14f03.md index d6ead7d671a..4f6da7770c0 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f5ca1d2a490c97f14f03.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f5ca1d2a490c97f14f03.md @@ -9,7 +9,7 @@ dashedName: step-9 Now it is time to see the results of trimming whitespace at the end of the string. -Below your `trimmedEnd` variable, add a `console.log()` with the string `"After using the trimEnd() method — trailing spaces removed:"`. +Below your `trimmedEnd` variable, add a `console.log()` with the string `"After using the trimEnd() method, trailing spaces removed:"`. Then below that `console.log()`, add another `console.log()` with the `trimmedEnd` variable. @@ -22,10 +22,10 @@ const getLogs = () => spy.calls.map(call => call?.[0]); # --hints-- -You should log the string `"After using the trimEnd() method — trailing spaces removed:"` to the console. +You should log the string `"After using the trimEnd() method, trailing spaces removed:"` to the console. ```js -assert.equal(getLogs()[6], "After using the trimEnd() method — trailing spaces removed:"); +assert.equal(getLogs()[6], "After using the trimEnd() method, trailing spaces removed:"); ``` You should log the `trimmedEnd` variable to the console. @@ -48,7 +48,7 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f890010c870e17bbe754.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f890010c870e17bbe754.md index b5380d4637b..07aa8fae1e1 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f890010c870e17bbe754.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f3f890010c870e17bbe754.md @@ -48,11 +48,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f405c8c9df44132c8fe1bb.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f405c8c9df44132c8fe1bb.md index 8a8df1fa59c..f11f3f1a294 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f405c8c9df44132c8fe1bb.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f405c8c9df44132c8fe1bb.md @@ -51,11 +51,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); const upperCaseInput = cleanedInput.toUpperCase(); diff --git a/curriculum/challenges/english/blocks/workshop-string-formatter/68f40925d810ae14b2d5a169.md b/curriculum/challenges/english/blocks/workshop-string-formatter/68f40925d810ae14b2d5a169.md index b269280b709..1c6285a0b19 100644 --- a/curriculum/challenges/english/blocks/workshop-string-formatter/68f40925d810ae14b2d5a169.md +++ b/curriculum/challenges/english/blocks/workshop-string-formatter/68f40925d810ae14b2d5a169.md @@ -50,11 +50,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); const upperCaseInput = cleanedInput.toUpperCase(); @@ -85,11 +85,11 @@ console.log("Result of trimming whitespace from both ends:"); console.log(cleanedInput); const trimmedStart = userInput.trimStart(); -console.log("After using the trimStart() method — leading spaces removed:"); +console.log("After using the trimStart() method, leading spaces removed:"); console.log(trimmedStart); const trimmedEnd = userInput.trimEnd(); -console.log("After using the trimEnd() method — trailing spaces removed:"); +console.log("After using the trimEnd() method, trailing spaces removed:"); console.log(trimmedEnd); const upperCaseInput = cleanedInput.toUpperCase();