File tree Expand file tree Collapse file tree 3 files changed +258
-258
lines changed
1-js/02-first-steps/05-types Expand file tree Collapse file tree 3 files changed +258
-258
lines changed Original file line number Diff line number Diff line change 11
2- Backticks embed the expression inside ` ${...} ` into the string .
2+ Los "backticks" incrustan la expresión dentro de ` ${...} ` en la cadena .
33
44``` js run
55let name = " Ilya" ;
66
7- // the expression is a number 1
8- alert ( ` hello ${ 1 } ` ); // hello 1
7+ // la expresión es un número 1
8+ alert ( ` hola ${ 1 } ` ); // hola 1
99
10- // the expression is a string "name "
11- alert ( ` hello ${ " name" } ` ); // hello name
10+ // la expresión es una cadena "nombre "
11+ alert ( ` hola ${ " name" } ` ); // hola name
1212
13- // the expression is a variable, embed it
14- alert ( ` hello ${ name} ` ); // hello Ilya
13+ // la expresión es una variable, incrustarla
14+ alert ( ` hola ${ name} ` ); // hola Ilya
1515```
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ importance: 5
22
33---
44
5- # String quotes
5+ # Comillas
66
7- What is the output of the script?
7+ Cuál es la salida del script?
88
99``` js
1010let name = " Ilya" ;
1111
12- alert ( ` hello ${ 1 } ` ); // ?
12+ alert ( ` hola ${ 1 } ` ); // ?
1313
14- alert ( ` hello ${ " name" } ` ); // ?
14+ alert ( ` hola ${ " name" } ` ); // ?
1515
16- alert ( ` hello ${ name} ` ); // ?
17- ```
16+ alert ( ` hola ${ name} ` ); // ?
17+ ```
You can’t perform that action at this time.
0 commit comments