Skip to content

Data types #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions 1-js/02-first-steps/05-types/1-string-quotes/solution.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

Backticks embed the expression inside `${...}` into the string.
Los "backticks" incrustan la expresión dentro de `${...}` en la cadena.

```js run
let name = "Ilya";

// the expression is a number 1
alert( `hello ${1}` ); // hello 1
// la expresión es un número 1
alert( `hola ${1}` ); // hola 1

// the expression is a string "name"
alert( `hello ${"name"}` ); // hello name
// la expresión es una cadena "nombre"
alert( `hola ${"name"}` ); // hola name

// the expression is a variable, embed it
alert( `hello ${name}` ); // hello Ilya
// la expresión es una variable, incrustarla
alert( `hola ${name}` ); // hola Ilya
```
12 changes: 6 additions & 6 deletions 1-js/02-first-steps/05-types/1-string-quotes/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ importance: 5

---

# String quotes
# Comillas

What is the output of the script?
Cuál es la salida del script?

```js
let name = "Ilya";

alert( `hello ${1}` ); // ?
alert( `hola ${1}` ); // ?

alert( `hello ${"name"}` ); // ?
alert( `hola ${"name"}` ); // ?

alert( `hello ${name}` ); // ?
```
alert( `hola ${name}` ); // ?
```
Loading