diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 16381ac93482cc..1f0df4dbcf9073 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -4542,6 +4542,7 @@ snippet: function AddTwo(num) { return num + 2; } +global.AddTwo = AddTwo; ``` Then, the above function can be invoked from a native add-on using the