chore(i18n,learn): processed translations (#51291)

This commit is contained in:
camperbot
2023-08-16 20:48:51 +05:30
committed by GitHub
parent 8700500668
commit 05eab884b0
164 changed files with 1194 additions and 1134 deletions

View File

@@ -51,7 +51,7 @@ Tu código debe utilizar notación de puntos y de corchetes para acceder a `mySt
assert(/=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]/g.test(code));
```
`gloveBoxContents` should still be declared with `const`.
`gloveBoxContents` debe ser declarado como `const`.
```js
assert.match(code, /const\s+gloveBoxContents\s*=/)

View File

@@ -22,7 +22,7 @@ Completa la función utilizando las reglas siguientes para modificar el objeto p
- Tu función debe devolver siempre el objeto `records` completo.
- Si `value` es una cadena vacía, elimina la propiedad `prop` dada del álbum.
- Si `prop` no es `tracks` y `value` no es una cadena vacía, asigna el `value` a la `prop` de ese álbum.
- If `prop` is `tracks` and `value` isn't an empty string, you need to update the album's `tracks` array. First, if the album does not have a `tracks` property, assign it an empty array. Then add the `value` as the last item in the album's `tracks` array.
- Si `prop` es `tracks` y `value` no es una cadena vacía, agrega `value` al final del array de `tracks` existentes del álbum. Primero, si el álbum no tiene una propiedad `tracks`, asigne un array vacío. Luego añade el `valor` como el último elemento en el array `de pistas` del álbum.
**Nota:** Para las pruebas se utiliza una copia del objeto `recordCollection`. No debes modificar directamente el objeto `recordCollection`.

View File

@@ -8,7 +8,7 @@ dashedName: testing-objects-for-properties
# --description--
To check if a property on a given object exists or not, you can use the `.hasOwnProperty()` method. `someObject.hasOwnProperty(someProperty)` returns `true` or `false` depending on if the property is found on the object or not.
Para verificar si una propiedad de un objeto dado existe o no, puedes utilizar el método `.hasOwnProperty()`. `someObject.hasOwnProperty(someProperty)` devuelve `true` o `false`, dependiendo si la propiedad es encontrada en el objeto o no.
**Por ejemplo**
@@ -21,11 +21,11 @@ checkForProperty({ top: 'hat', bottom: 'pants' }, 'top'); // true
checkForProperty({ top: 'hat', bottom: 'pants' }, 'middle'); // false
```
The first `checkForProperty` function call returns `true`, while the second returns `false`.
La primera llamada a la función `checkForProperty` devuelve `true`, mientras que la segunda llamada a la función devuelve `false`.
# --instructions--
Modify the function `checkObj` to test if the object passed to the function parameter `obj` contains the specific property passed to the function parameter `checkProp`. If the property passed to `checkProp` is found on `obj`, return that property's value. If not, return `Not Found`.
Modifica la funcn `checkObj` para probar si el objeto enviado al parámetro de función `obj` contiene la propiedad específica enviada al parámetro de función `checkProp`. Si la propiedad enviada a `checkProp` es encontrada en `obj`, devuelve el valor de esa propiedad. De lo contrario, devuelve `Not Found`.
# --hints--