# Dependency

*noun*

say it: **“dih-PEN-dun-see”** **/dɪˈpɛndənsi/**

A package someone else wrote that your project needs in order to work, listed in package.json so it can be installed again on any computer.

## What is **Dependency** in JavaScript?

**Dependency** — External code that a project needs to compile or run.

## In a sentence

- “Before adding a new **dependency**, I checked how big it was and when it was last updated.”
- “The bike shop page has one **dependency**, a small library that formats prices as dollars.”

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=3)

Updated: November 9, 2026

## In other subjects

- [Dependency in C#](https://www.ask-codey.com/glossary/dependency-c-sharp)
- [Dependency in Java](https://www.ask-codey.com/glossary/dependency)
- [Dependency in OOP](https://www.ask-codey.com/glossary/dependency-oop)

Source: https://www.ask-codey.com/glossary/dependency-javascript
