You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: "This is the `string interpolation` syntax."
6
+
category: "languageconstructs"
7
+
---
8
+
9
+
A `string interpolation` is composed of two backticks. It allows Unicode characters and embeddable values and expressions with the `${myValue}` syntax.
10
+
11
+
### Example
12
+
13
+
<CodeTablabels={["ReScript", "JS Output"]}>
14
+
15
+
```res
16
+
let language = "ReScript"
17
+
18
+
let exclamation = `${language} is pretty cool.
19
+
Right?
20
+
🎉
21
+
`
22
+
```
23
+
24
+
```js
25
+
var language ="ReScript";
26
+
27
+
var exclamation = language +" is pretty cool.\nRight?\n🎉\n";
0 commit comments