Let's assume I have a variable:

```
var x = 0;

```

Each time this variable gets modified I want to run a function:

```
function(){
    console.log('x has been changed');
}

```

Would RxJs be appropiate for this task? If not, what other approach would work better?