How do I insert a variable into a function call?

  • 0
    Hello everyone, I'm trying to insert a variable into a function call, but it turns out like inserting a variable into a string,
    here is the function call itself:
    await api.action.hereVariable ();
    JavaScript Anonymous, Sep 14, 2019

  • 1 Answers
  • 0
    await api.action [HereVariable] ();
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!