DEV Community

Discussion on: Functions in JS before learning React

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

It's worth using strings as arguments for Function constructor, so you know exactly how it works:

new Function('A1', 'A2', 'return A1 + A2');
Enter fullscreen mode Exit fullscreen mode