CodeBeginner

Hard-coding

Also known as hardcoding · hard-coded value

Embedding a fixed value directly in code instead of obtaining it from configuration, input, or another data source.

In the real world

const apiUrl = 'https://api.example.com'; hard-codes an API base URL.

Related

Go a little deeper