Multiple choice technology performance

Caching variable values in a another local variables is a not useful

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Caching frequently accessed object properties in local variables reduces repeated property lookups, which improves performance. Each property access requires the JavaScript engine to traverse the object's prototype chain. Storing the value in a local variable eliminates this overhead, especially in loops.