First of all, please ask a question. A BIIIIIG part of being a developer is communication. On a job, there are A LOOOOT of times when you have a problem and you have to explain to someone what the problem is.
First of all, what are you going to call that function “addone” or “addOne”? The second one is more inline with JS because it is camelCase, but they at least have to match.
Also, you’re just supposed to call store.subscribe, not wrap it in a function.
Also, what you’re passing store.subscribe… You are supposed to pass it the function, or a reference (memory address). The reference is stored in the variable. If you pass it addOne(), you are calling that function, so really what you are saying is “call that function (addOne) when you get to that line and whatever that returns, pass that to store.subscribe.” But addOne doesn’t return anything so really what you are saying is store.subscribe(undefined). You are supposed to pass it a function.