Please enable JavaScript to use CodeHS

CodeHS Glossary


Curly Bracket General

An open curly bracket is { and a close curly bracket is }

Curly brackets are used to mark what code is in a certain block.

To type a curly bracket, hold down the SHIFT key and press the key that has [ and { on it.

You can find that key on your keyboard directly to the right of P

The ] and } key is one more to the right.


You should use curly brackets for all of these control structures:

Read about how to use curly brackets on the indentation page.