Remove backticks from around data types to ease translations (#42403)
This commit is contained in:
@ -19,23 +19,23 @@ var sandwich = ["peanut butter", "jelly", "bread"]
|
|||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Modify the new array `myArray` so that it contains both a `string` and a `number` (in that order).
|
Modify the new array `myArray` so that it contains both a string and a number (in that order).
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
`myArray` should be an `array`.
|
`myArray` should be an array.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(typeof myArray == 'object');
|
assert(typeof myArray == 'object');
|
||||||
```
|
```
|
||||||
|
|
||||||
The first item in `myArray` should be a `string`.
|
The first item in `myArray` should be a string.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(typeof myArray[0] !== 'undefined' && typeof myArray[0] == 'string');
|
assert(typeof myArray[0] !== 'undefined' && typeof myArray[0] == 'string');
|
||||||
```
|
```
|
||||||
|
|
||||||
The second item in `myArray` should be a `number`.
|
The second item in `myArray` should be a number.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(typeof myArray[1] !== 'undefined' && typeof myArray[1] == 'number');
|
assert(typeof myArray[1] !== 'undefined' && typeof myArray[1] == 'number');
|
||||||
|
Reference in New Issue
Block a user