The reset! function sets the provided value as the new value of atom. This way, we override an existing value:
(reset! basket-counter 3)
This will set the basket-counter value to be 3. Dereferencing atom shows that this is the case:
@basket-counter
The output is as follows:
=> 3