it to identify the end of statment
i agree that sometime browser do not mind but you can not relay on that as browser fix some of the missing close tag
hope that help and have a nice day
I think anyone should better know how ASI works to don’t get suprises with code not doing what it looks to do and then never put any semicolon (except when necessary) as it is almost always useless if your code is clean.
thanks for sharing that @FlorianMonfort and have a nice day