java-script:dynamic-function-invocation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| java-script:dynamic-function-invocation [2023/08/10 12:45] – odefta | java-script:dynamic-function-invocation [2025/01/02 18:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| const methodName = ' | const methodName = ' | ||
| obj[methodName](' | obj[methodName](' | ||
| + | </ | ||
| + | |||
| + | <code javascript> | ||
| + | function myConsole(method, | ||
| + | console[method](items.join(', | ||
| + | } | ||
| + | myConsole(' | ||
| </ | </ | ||
java-script/dynamic-function-invocation.1691671537.txt.gz · Last modified: (external edit)
