Used in a Sentence

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).

Examples16
Definitions1
Parts of speech1

Quick take

The punctuation mark ;.

Meaning at a glance

The clearest senses and uses of semicolons gathered in one view.

noun

The punctuation mark ;.

Definitions

Core meanings and parts of speech for semicolons.

noun

The punctuation mark ;.

Example sentences

1

You only need semicolons when you put multiple statements on a line (like a minifier does).

2

Your files come out the exact same size as cramming it onto a line with semicolons...

3

ES6 has just the right amount of syntax, with lots of optionals too (semicolons, no brackets when writing function expressions, etc).

4

I haven't gotten much into Javascript yet, but is there any reason I would not terminate with semicolons?

5

Yes, but you can cut out some of the indentation whitespace using semicolons.

6

Yes, that exact code would work, except with some extra semicolons.

7

How would semicolons have prevented the first of those misunderstandings?

8

Missing semicolons have more pitfalls than just minifiers being naughty.

9

When most of us think about computer programming, we think of typing in lines and lines of code with semicolons and complex syntax.

10

I love semicolons too, but am giving it a go without them here.

11

Wait, do I use semicolons at the end of lines in Ruby?

12

But it doesn't have brackets and semicolons.

Quote examples

1

I started using jshint and jscs recently in part to enforce the use of semicolons (on the advice of "JavaScript: The Good Parts").

2

There are semicolons:) They do sequential function composition: { /foo dump } /f defv { /bar dump } /g defv f g; /h deff h # "foo" "bar"

3

</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.

4

"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.