Create a Redux Store- Problem in Question?

Tell us what’s happening:
Declare a store variable and assign it to the createStore() method, passing in the reducer as an argument.

Should this not be :

Assign the createStore method, passing in the reducer as an argument to the store variable?

Your code so far


const reducer = (state = 5) => {
  return state;
}

// Redux methods are available from a Redux object
// For example: Redux.createStore()
// Define the store here:
var store;
store = Redux.createStore(reducer);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/redux/create-a-redux-store

I find both ways a little confusing, but I like the original better. But they could probably both be improved. What about “Use the pass your reducer into the createStore method and assign the result to a variable that you create called store.”

I don’t know, we could bikeshed over this till the cows come home. But if you think it is a big issue, you can raise it as an issue on the github and start a discussion.