const

const — 名詞

1. a written abbreviation for 'constant', used in computing to label a value or var

1.名詞B1
釋義

const

程式中不變的值或變數

a written abbreviation for 'constant', used in computing to label a value or variable that the programmer does not intend to change while a program runs.

例句

Haruto declared a const variable for the sales tax rate in the code.

Haruto 在程式碼中用 const 宣告了銷售稅率的變數。

const + variable/noun for a fixed value in code

Using const helps other programmers see which values should stay the same.

使用 const 能讓其他程式設計師看出哪些數值不該被更改。

同義詞
  • final

    used in Java for the same purpose; more common in OOP contexts

  • readonly

    used in C# and TypeScript; allows assignment only at declaration or in a constructor

反義詞
  • variable

    a value that can change; var or let in many languages

用法筆記

In many programming languages such as C++, JavaScript, and Rust, 'const' is a keyword written in lowercase. It is typically placed before a variable declaration to signal that the variable's value cannot be reassigned after initial assignment.

常見錯誤

I declared a const variable and later changed its value in the code.
I declared a const variable, so the compiler prevents me from changing its value.
💡Changing the value of a const variable causes an error in most languages.

2. a written abbreviation for 'constitution' or 'constitutional', used in legal wri

2.名詞B2
釋義

憲法

憲法或憲法的縮寫

a written abbreviation for 'constitution' or 'constitutional', used in legal writing and official documents to refer to a country or state's founding legal document.

例句

The judge referred to Article V of the U.S. Const. during the hearing.

法官在庭訊中提到了美國憲法第五條。

Const. with period + Article [number] + of

Gabriela found the relevant clause in the state const. after searching for an hour.

Gabriela 花了一個小時查找,終於在州憲法中找到相關條文。

用法筆記

When written with an initial capital letter and a period (Const.), it almost always refers to a specific constitution. Used informally within legal case citations and academic footnotes.

3. a written abbreviation for 'construction', used in project plans, signs, and eng

3.名詞B1
釋義

施工;建築

建築或工程項目的縮寫

a written abbreviation for 'construction', used in project plans, signs, and engineering documents to refer to the process of building or assembling something.

例句

The const. of the new hospital wing is scheduled to finish in March.

新醫院大樓的施工預計在三月完工。

const. of + [building/infrastructure project]

Ravindra checked the const. schedule before ordering the steel beams.

Ravindra 在訂購鋼樑之前先查看了施工進度表。

用法筆記

Common on roadside signs ('Under Const.'), in architectural blueprints, and in civil engineering reports. The full form 'construction' is more common in everyday writing.

4. a written abbreviation for 'constant', used in mathematics and science to refer

4.名詞B1
釋義

常數

數學或科學中不變的量

a written abbreviation for 'constant', used in mathematics and science to refer to a quantity or number that remains the same across all situations or calculations.

例句

The speed of light is a well-known const. in physics equations.

光速是物理公式中一個著名的常數。

const. as a label for a mathematical/scientific invariant

Aylin wrote the value of const. π on the board for the geometry class.

Aylin 在幾何課上把常數 π 的值寫在黑板上。

同義詞
  • invariant

    more formal; used in advanced mathematics and computer science

反義詞
  • variable

    a quantity that can change in an equation or experiment

用法筆記

Used in textbooks, scientific papers, and mathematical proofs to save space. Unlike the programming sense (const keyword), this sense always refers to the underlying invariant value itself, not to a language keyword.

常見錯誤

The value of const π is 3.14 in this experiment.
The value of the constant π is 3.14 in this experiment.
💡When speaking or writing formally, use the full word 'constant' instead of the abbreviation.