I promised I’d start making videos last week, didn’t I? Well, here’s the first video! Today, I’d like to talk about semicolons.
That’s what I dive into in this video. I also show a very important tool to help you write good, consistent code in the video.
If you don’t use semi-colons, your code might look abit nicer without the dangling dots at the end of each line, but that’s about it.
I understand there that are people who would say that if you don’t use semi-colons, your code is shit. Don’t listen to them and don’t worry about them, because they’re too rigid in their thinking, and they cannot accept new things.
It’s okay to use or not use semicolons. It boils down your preference or your team’s preference.
If you want to find out about why you can omit semicolons, read Feross’s article.
Use a linter to help write consistent code. If you use Sublime Text, I suggest Sublime linter.
If you use other text editors, search for “your text editor” plus “linter” and you should be able to find a good one.
If you have any questions about frontend development, or if you want to say hi, feel free to send me an email.
(Oh, by the way, if you liked this article, I'd appreciate it if you could share it. 🤗)