var str = "console.log("222");console.log(111)"; //
var tempFun = new Function(str);
tempFun();
then I remove the semicolon between the two sentences
var str = "console.log("222") console.log(111)"; //
var tempFun = new Function(str);
tempFun();
I don"t quite understand why we can write without a semicolon.