Hello guys,
I am coming from a PHP programming background, just started learning Corona and kind of I am loving it. When review some sample codes and in some tutorials, I see some lines end with semicolon , but some lines don’t.
When should we add semicolon at the end of the line?
for example, in sample codes, in SampleCode/Physics/EggBreaker/main.lua
we have this code
local arrow = display.newImage( "arrow.png", 50, 120 ) game:insert( arrow );
Why the first line doesn’t have semicolon, but second line has semicolon?
Thanks for your help