Skip to content

Commit dcb84a3

Browse files
author
Aiyo
authoredJul 24, 2020
Update solution.md
1 parent 1867718 commit dcb84a3

File tree

1 file changed

+4
-4
lines changed
  • 1-js/02-first-steps/05-types/1-string-quotes

1 file changed

+4
-4
lines changed
 
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
Backticks embed the expression inside `${...}` into the string.
2+
Backtick-ovi ugrade rezultat izraza unutar `${...}` u string / tekst.
33

44
```js run
55
let name = "Ilya";
66

7-
// the expression is a number 1
7+
// izraz je broj 1
88
alert( `hello ${1}` ); // hello 1
99

10-
// the expression is a string "name"
10+
// izraz je string/tekst "name"
1111
alert( `hello ${"name"}` ); // hello name
1212

13-
// the expression is a variable, embed it
13+
// izraz je varijabla, ugradi se u tekst
1414
alert( `hello ${name}` ); // hello Ilya
1515
```

0 commit comments

Comments
 (0)
Please sign in to comment.