addEventListener to var when value change

Is there any way to add an eventListener to a variable that listenes for if it change value?