mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
docs(string): edit tagged template #510
This commit is contained in:
parent
71a8a26585
commit
be04c5216a
@ -742,7 +742,8 @@ msg // "The total is 30 (31.5 with tax)"
|
|||||||
```javascript
|
```javascript
|
||||||
function passthru(literals, ...values) {
|
function passthru(literals, ...values) {
|
||||||
let output = "";
|
let output = "";
|
||||||
for (let index = 0; index < values.length; index++) {
|
let index;
|
||||||
|
for (index = 0; index < values.length; index++) {
|
||||||
output += literals[index] + values[index];
|
output += literals[index] + values[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user