Skip to content

Commit e0bda03

Browse files
SupravisormoT01
andauthored
fix(curriculum): Platformer Game specify argument for height property (freeCodeCamp#55826)
Co-authored-by: Tom <[email protected]>
1 parent d50a071 commit e0bda03

File tree

1 file changed

+7
-0
lines changed
  • curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game

1 file changed

+7
-0
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ Remember to use the `this` keyword to access the properties.
1515

1616
You should have a `height` property.
1717

18+
```js
19+
const splitter = code.split("if (this.position.x < this.width) {")
20+
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*\d+\s*\)\s*;?/);
21+
```
22+
23+
You should assign `proportionalSize(40)` to the `height` property.
24+
1825
```js
1926
const splitter = code.split("if (this.position.x < this.width) {")
2027
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*40\s*\)\s*;?/);

0 commit comments

Comments
 (0)