Define a Redux Action o

Tell us what’s happening:

Your code so far


// Define an action here:
const action = type(string) 'LOGIN';

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

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

re-iterating the instructions:

Writing a Redux action is as simple as declaring an object with a type property. Declare an object action and give it a property type set to the string ‘LOGIN’.

So first, action needs to equal {}, not a string.
Then you add a property to your action called type, and assign “LOGIN” to the type property.

Maybe you need to revisit JS objects?