4-41 syntax parsers

4-42 Automatic semicolon insertion

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

function getPerson(){
return
{
firstname:"Sam"
}
}
console.log(getPerson()); //undefined
// after ASI
function getPerson(){
return ;
{
firstname:"Sam"
};
}