The punctuation mark ;.
semicolons
Definition, parts of speech, synonyms, and sentence examples for semicolons.
Editorial note
You only need semicolons when you put multiple statements on a line (like a minifier does).
Quick take
The punctuation mark ;.
Meaning at a glance
The clearest senses and uses of semicolons gathered in one view.
Definitions
Core meanings and parts of speech for semicolons.
noun
The punctuation mark ;.
Example sentences
You only need semicolons when you put multiple statements on a line (like a minifier does).
Your files come out the exact same size as cramming it onto a line with semicolons...
ES6 has just the right amount of syntax, with lots of optionals too (semicolons, no brackets when writing function expressions, etc).
I haven't gotten much into Javascript yet, but is there any reason I would not terminate with semicolons?
Yes, but you can cut out some of the indentation whitespace using semicolons.
Yes, that exact code would work, except with some extra semicolons.
How would semicolons have prevented the first of those misunderstandings?
Missing semicolons have more pitfalls than just minifiers being naughty.
When most of us think about computer programming, we think of typing in lines and lines of code with semicolons and complex syntax.
I love semicolons too, but am giving it a go without them here.
Wait, do I use semicolons at the end of lines in Ruby?
But it doesn't have brackets and semicolons.
Quote examples
I started using jshint and jscs recently in part to enforce the use of semicolons (on the advice of "JavaScript: The Good Parts").
There are semicolons:) They do sequential function composition: { /foo dump } /f defv { /bar dump } /g defv f g; /h deff h # "foo" "bar"
</snark> Seriously, though, I doubt most programmers enjoy "semicolons and syntax" for their own sake; we use programming languages because they allow us to create programs.
"Oh, in this language, we terminate lines with semicolons except blocks like if's and loops," "= is for assignment and == is for comparison." They'll get better with practice.
Frequently asked questions
Short answers drawn from the clearest meanings and examples for this word.
How do you use semicolons in a sentence?
You only need semicolons when you put multiple statements on a line (like a minifier does).
What does semicolons mean?
The punctuation mark ;.
What part of speech is semicolons?
semicolons is commonly used as noun.