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 explicit `string` interpolation syntax."
6
+
category: "languageconstructs"
7
+
---
8
+
9
+
An explicit `string` interpolation is composed of two backticks. It works like JavaScript's backtick string interpolation without the need to escape special characters.
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