Comentario del ejemplo 'if...else' traducido (#21858)
This commit is contained in:
@ -48,7 +48,7 @@ if (condition) {
|
|||||||
**Usando** `if...else` :
|
**Usando** `if...else` :
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// If x=5 z=7 and q=42. If x is not 5 then z=19.
|
// Si x=5 --> z=7 y q=42. Si x no es igual a 5 --> z=19.
|
||||||
if (x == 5) {
|
if (x == 5) {
|
||||||
z = 7;
|
z = 7;
|
||||||
q = 42
|
q = 42
|
||||||
@ -70,4 +70,4 @@ if (x < 10)
|
|||||||
return "Invalid number";
|
return "Invalid number";
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user