fix(curriculum): updated wording on understanding uninitialized variables (#45860)

* updated wording on understanding uninitialized variables

* updated wording for case b to match case a

* updated case c to match the wording of both case a and b
This commit is contained in:
Luke Harrison
2022-05-05 13:05:30 -04:00
committed by GitHub
parent ccce74ed6a
commit e4c6883a20

View File

@@ -17,19 +17,19 @@ Initialize the three variables `a`, `b`, and `c` with `5`, `10`, and `"I am a"`
# --hints--
`a` should be defined and evaluated to have the value of `6`.
`a` should be defined and have a final value of `6`.
```js
assert(typeof a === 'number' && a === 6);
```
`b` should be defined and evaluated to have the value of `15`.
`b` should be defined and have a final value of `15`.
```js
assert(typeof b === 'number' && b === 15);
```
`c` should not contain `undefined` and should have a value of the string `I am a String!`
`c` should not contain `undefined` and should have a final value of the string `I am a String!`
```js
assert(!/undefined/.test(c) && c === 'I am a String!');