mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): Platformer Game specify argument for height property (#55826)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
+7
@@ -15,6 +15,13 @@ Remember to use the `this` keyword to access the properties.
|
||||
|
||||
You should have a `height` property.
|
||||
|
||||
```js
|
||||
const splitter = code.split("if (this.position.x < this.width) {")
|
||||
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*\d+\s*\)\s*;?/);
|
||||
```
|
||||
|
||||
You should assign `proportionalSize(40)` to the `height` property.
|
||||
|
||||
```js
|
||||
const splitter = code.split("if (this.position.x < this.width) {")
|
||||
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*40\s*\)\s*;?/);
|
||||
|
||||
Reference in New Issue
Block a user