Answers for "javascript function call with variable"

0

javascript function call with variable

function abc() {
  alert('test');
}

var funcName = 'abc';

window[funcName]();
Posted by: Guest on March-30-2020

Code answers related to "javascript function call with variable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language