JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

function foo(str, a) {
  eval(str);
  console.log(a, b);
}
var b = 2;
foo("var b = 3", 1);