I am trying to declare a variable with the value returned by a function:
var myValue = hot.getSettings();
However, the value of myValue keeps changing when the return value of getSettings() change. How can I define myValue as the current value of the getSettings() function, and save that value in myValue, even if getSettings change?