DEV Community

Discussion on: Everything Wrong With JavaScript `eval()`

Collapse
 
13shubham profile image
shubham singh • Edited

Hi Linas,

While using Function, I am getting issue as "args is not defined".
As my string is in the object and the value is "hello, my name is ${arg[0]}."

I am also passing the arg to this runtime object. Don't know what is the issue and how argument will be fetched. Could you help me with this ?
With eval() it works fine