Professional Documents
Culture Documents
ASI Questions
ASI Questions
ASI Questions
Q.2) Why this code is returning undefined in spite of function returning a valid
object literal ?
function test(){
return
{
a:5
}
}
const obj=test();
console.log(obj);
Q.3) Can �use strict� statement or the strict mode change the behavior of ASI ?