My question is related to the behavior of a variable, since it is assigned a dynamic value in it.
For example in the code:
var x_position = window.getComputedStyle(elemento).marginLeft;
Doubt: Every time I have to read the variable x_position
, will it fetch the updated value from window.getComputedStyle again? Or is this reading done only once?
My question is specific to ES5 because at 6 we already have constants.