Skip to content

Commit

Permalink
Update getting-started.md - add display (#858)
Browse files Browse the repository at this point in the history
* Update getting-started.md

* semicolon

---------

Co-authored-by: Mike Bostock <[email protected]>
  • Loading branch information
bertt and mbostock authored Feb 19, 2024
1 parent 6b1e943 commit 3c1f883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ function temperaturePlot(data, {width} = {}) {
Now you can call `temperaturePlot` to display the forecast anywhere on the page:

```js run=false
temperaturePlot(forecast)
display(temperaturePlot(forecast));
```

<div class="tip">JavaScript can be extracted into standalone modules (<code>.js</code> files) that you can <a href="./javascript/imports">import</a> into Markdown. This lets you share code across pages, write unit tests for components, and more.</div>
Expand Down

0 comments on commit 3c1f883

Please sign in to comment.