Skip to content

Commit 4b0a849

Browse files
committed
Function() example
1 parent 5ed041d commit 4b0a849

File tree

1 file changed

+3
-0
lines changed
  • files/en-us/web/javascript/reference/global_objects/function/function

1 file changed

+3
-0
lines changed

files/en-us/web/javascript/reference/global_objects/function/function/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ If that is not possible, you might allow or block the use of certain functions w
138138

139139
## Examples
140140

141+
Note that these examples omit the use of trusted types for brevity.
142+
For code showing the usual approach, see [Using `TrustedScript`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#using_trustedscript) in `eval()`.
143+
141144
### Specifying arguments with the Function constructor
142145

143146
The following code creates a `Function` object that takes two arguments.

0 commit comments

Comments
 (0)