Remove backticks from around data types to ease translations (#42403)

This commit is contained in:
Ilenia
2021-06-08 10:33:16 +02:00
committed by GitHub
parent 7c8b0fcf08
commit 28add4712a

View File

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