fix(learn): update JS Algo and DS - New Cert (#48030)

This commit is contained in:
Sai Harvin
2022-10-19 14:35:29 +05:30
committed by GitHub
parent 129c110368
commit 3653ff4e18

View File

@@ -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);