Last active
January 20, 2021 19:13
-
-
Save bobdobbalina/4b162b4826de5149cc09ad5dc640c6c3 to your computer and use it in GitHub Desktop.
Javascript: Calling dynamically a function inside an array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let method = (/* True or false */ ? 'start' : 'stop'); | |
array[method](); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment