Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions component-model/src/language-support/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ To use this component from [NodeJS][nodejs], you can write code like the followi
```mjs
import { add } from "./dist/transpiled/adder.js";

console.log("1 + 2 = " + add(1, 2));
console.log("1 + 2 = " + add.add(1, 2));
```

You can execute the JavaScript module with `node` directly:
Expand Down Expand Up @@ -281,7 +281,7 @@ As a slightly deeper crash course on [WIT][wit], here's what the above code desc
- This WIT file corresponds to version `0.1.0` of `example:string-reverse` package
- We've defined an interface called `reverse` which contains *one* function called `reverse-string`
- We specify that the `reverse` interface has existed *since* the `0.1.0` version
- The `reverse-string` function (AKA. `example:reverse-string/reverse.reverse-string`) takes a string and returns a string
- The `reverse-string` function (AKA. `example:string-reverse/reverse.reverse-string`) takes a string and returns a string
- We've defined a `world` called `string-reverse` which exports the functionality provided by the `reverse` interface

> [!WARNING]
Expand Down