Skip to content

Commit

Permalink
Merge pull request #12 from aiyodev/master
Browse files Browse the repository at this point in the history
Data types
  • Loading branch information
Aiyo authored Jul 24, 2020
2 parents a09b172 + 02b1cab commit 51f93c3
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 111 deletions.
8 changes: 4 additions & 4 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.
Backtick-ovi ugrade rezultat izraza unutar `${...}` u string/tekst.

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

// the expression is a number 1
// izraz je broj 1
alert( `hello ${1}` ); // hello 1

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

// the expression is a variable, embed it
// izraz je varijabla, ugradi se u tekst
alert( `hello ${name}` ); // hello Ilya
```
8 changes: 4 additions & 4 deletions 1-js/02-first-steps/05-types/1-string-quotes/task.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
importance: 5
važnost: 5

---

# String quotes
# String navodnici

What is the output of the script?
Koji je izlaz skripte, šta će se prikazati?

```js
let name = "Ilya";
Expand All @@ -14,4 +14,4 @@ alert( `hello ${1}` ); // ?
alert( `hello ${"name"}` ); // ?

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

0 comments on commit 51f93c3

Please sign in to comment.