mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 14:01:28 -04:00
fix(learn): update JS Algo and DS - New Cert (#48030)
This commit is contained in:
@@ -37,55 +37,55 @@ Your `monsters` array should have 3 objects.
|
||||
assert(monsters.every(val => typeof val === "object"));
|
||||
```
|
||||
|
||||
The first value in your `monsters` array should have an object with a `name` property set to `slime`.
|
||||
The first value in your `monsters` array should be an object with a `name` property set to `slime`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[0].name, "slime");
|
||||
```
|
||||
|
||||
The first value in your `monsters` array should have an object with a `level` property set to `2`.
|
||||
The first value in your `monsters` array should be an object with a `level` property set to `2`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[0].level, 2);
|
||||
```
|
||||
|
||||
The first value in your `monsters` array should have an object with a `health` property set to `15`.
|
||||
The first value in your `monsters` array should be an object with a `health` property set to `15`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[0].health, 15);
|
||||
```
|
||||
|
||||
The second value in your `monsters` array should have an object with a `name` property set to `fanged beast`.
|
||||
The second value in your `monsters` array should be an object with a `name` property set to `fanged beast`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[1].name, "fanged beast");
|
||||
```
|
||||
|
||||
The second value in your `monsters` array should have an object with a `level` property set to `8`.
|
||||
The second value in your `monsters` array should be an object with a `level` property set to `8`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[1].level, 8);
|
||||
```
|
||||
|
||||
The second value in your `monsters` array should have an object with a `health` property set to `60`.
|
||||
The second value in your `monsters` array should be an object with a `health` property set to `60`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[1].health, 60);
|
||||
```
|
||||
|
||||
The third value in your `monsters` array should have an object with a `name` property set to `dragon`.
|
||||
The third value in your `monsters` array should be an object with a `name` property set to `dragon`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[2].name, "dragon");
|
||||
```
|
||||
|
||||
The third value in your `monsters` array should have an object with a `level` property set to `20`.
|
||||
The third value in your `monsters` array should be an object with a `level` property set to `20`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[2].level, 20);
|
||||
```
|
||||
|
||||
The third value in your `monsters` array should have an object with a `health` property set to `300`.
|
||||
The third value in your `monsters` array should be an object with a `health` property set to `300`.
|
||||
|
||||
```js
|
||||
assert.equal(monsters[2].health, 300);
|
||||
|
||||
Reference in New Issue
Block a user