We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

IamManchanda • 6 years ago

You have lot of missing semicolons in your code. Please have a look and update!

DamCosset • 6 years ago

The code is correct in this case. Semicolons are not mandatory.

SiDarthVader • 6 years ago

why is that?

DamCosset • 6 years ago

Javascript adds semicolons automatically at the end of statements. There a few use cases where omitting semicolons might cause issues. However, it is irrelevant for the purpose of this article.