Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 1-js/02-first-steps/18-javascript-specials/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Se pueden declarar usando:
- `var` (estilo antiguo, lo veremos más tarde)

Un nombre de variable puede incluir:
- Letras y dígitos, pero el primer carácter puede no ser un dígito.
- Letras y dígitos, pero el primer carácter no puede ser un dígito.
- Los caracteres `$` y `_` son normales, al igual que las letras.
- Los alfabetos y jeroglíficos no latinos también están permitidos, pero comúnmente no se usan.

Expand Down Expand Up @@ -223,7 +223,7 @@ switch (age) {
break;

default:
alert("Cualquier valor no igual a uno arriba");
alert("Todo valor que no sea igual a uno de arriba");
}
```

Expand Down Expand Up @@ -256,19 +256,19 @@ Cubrimos tres formas de crear una función en JavaScript:
3. Funciones de flecha:

```js
// expression at the right side
// la expresión en el lado derecho
let sum = (a, b) => a + b;

// or multi-line syntax with { ... }, need return here:
// o sintaxis multilínea { ... }, necesita return aquí:
let sum = (a, b) => {
// ...
return a + b;
}

// without arguments
// sin argumentos
let sayHi = () => alert("Hello");

// with a single argument
// con un único argumento
let double = n => n * 2;
```

Expand Down