'What does an array variable store in JavaScript'

Publié le: 27 juillet 2025
sur la chaîne: Backbencher Coder
17
1

Solve the quiz with backbencherCoder015


❓**Question**:

*"What does an array variable store in JavaScript?"*

✅ **Correct Answer**:

*B: Value address*

---

💡 Explanation:

In JavaScript:

Arrays are *non-primitive* (reference) types.
So when you do:

```js
let arr = [1, 2, 3];
```

`arr` *does not store* the actual array content.
It stores the *memory reference (address)* pointing to the actual array stored somewhere in memory.

---

🔍 Let's Review the Options:

| Option | Text | ✅ / ❌ | Why? |
| ------ | --------------------- | ----- | --------------------------------------------------------------------------- |
| A | Value of the variable | ❌ | Confusing wording; variables don’t store "value of variable" — tautology. |
| B | *Value address* | ✅ | Correct! Array variable holds *address (reference)* to the array. |
| C | Value of array | ❌ | Incorrect; that’s what you'd expect, but JS stores a *reference* instead. |
| D | Index of array | ❌ | Totally incorrect — variables don’t store any index info themselves. |

‪@BackbencherCoder015‬


Sur cette page du site, vous pouvez voir la vidéo en ligne 'What does an array variable store in JavaScript' durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Backbencher Coder 27 juillet 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 17 fois et il a aimé 1 téléspectateurs. Bon visionnage!