java-script:dynamic-function-invocation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
java-script:dynamic-function-invocation [2023/08/10 15:45] – odefta | java-script:dynamic-function-invocation [2023/08/10 15:46] (current) – odefta | ||
---|---|---|---|
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: 2023/08/10 15:45 by odefta