Singkatnya untuk mengubah value variable pada 2 tempat tanpa perlu di refresh atau reload page:
pada JavaScript
pada User Interface