I have an array of values:
[\'a\', \'b\', \'c\', \'d\']
and I need to pass these as parameters to a function:
window.myFunction
var arr = ['a','b','c']; function echo(x){ console.log(x) } function go(){ arr.map(echo); }
Test