Skip to content

Commit f002f1b

Browse files
fix(curriculum): enforce variable usage in sentence maker lab (freeCodeCamp#62078)
Co-authored-by: Ilenia <[email protected]>
1 parent 0d7de23 commit f002f1b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

curriculum/challenges/english/blocks/lab-sentence-maker/66c057041df6394ca796bf33.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ const expected = `Once upon a time, there was a(n) ${_initialValues['adjective']
133133
assert.strictEqual(firstStory, expected);
134134
```
135135

136+
You should assemble your first story using the variables you declared in the correct order.
137+
138+
```js
139+
assert.match(
140+
__helpers.removeJSComments(code),
141+
/firstStory\s*=\s*.*?adjective.*?noun.*?noun2.*?noun.*?place.*?adjective2.*?verb/
142+
);
143+
```
144+
136145
You should log your first story using the message `"First story: [firstStory]"`.
137146

138147
```js
@@ -190,6 +199,15 @@ const expected = `Once upon a time, there was a(n) ${adjective} ${noun} who love
190199
assert.strictEqual(secondStory, expected);
191200
```
192201

202+
You should assemble your second story using the variables you declared in the correct order.
203+
204+
```js
205+
assert.match(
206+
__helpers.removeJSComments(code),
207+
/secondStory\s*=\s*.*?adjective.*?noun.*?noun2.*?noun.*?place.*?adjective2.*?verb/
208+
);
209+
```
210+
193211
You should log your second story using the format `"Second story: [secondStory]"`.
194212

195213
```js

0 commit comments

Comments
 (0)