Lingua-e
← Glossary

What does "declare" mean in programming?

declare is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.

Definition

To introduce a new name such as a variable, function, or type into a program. Declaring reserves the name; assigning gives it a value.

Example

"const maxItems = 100; // declares and assigns a constant"

Word forms

FormTypeMeaningExample
declareverb (infinitive)To introduce a new name (variable, function, type) into the program"Declare the variable before you use it."
declaredpast tenseIntroduced a new name into the program"The function was declared at the top of the file."
declaringgerundIntroducing a new name into the program"Declaring a variable inside a loop creates a new binding each iteration."

Can you put this sentence in the right order?

Tap the words to place them here

Keep building your technical English

You just looked up what this word means. Lingua-e turns vocabulary like this into full practice: fill-in-the-blanks, listening, and real developer conversations.

Practice this for free

Related terms

Was this page helpful?