Use const for Action Types help i'm stuck

Tell us what’s happening:

Your code so far


// change code below this line


const LOGIN = 'LOGIN' 
const LOGOUT = 'LOGOUT'



// change code above this line

const defaultState = {
  authenticated: false
};

const authReducer = (state = defaultState, action) => {

  switch (action.type) {

    case 'LOGIN':
      return {
        authenticated: true
      }

    case 'LOGOUT':
      return {
        authenticated: false
      }

    default:
      return state;

  }

};

const store = Redux.createStore(authReducer);

const loginUser = () => {
  return {
    type: 'LOGIN'
  }
};

const logoutUser = () => {
  return {
    type: 'LOGOUT'
  }
};

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/redux/use-const-for-action-types

You has defined two constants. Why do not you use it?

Hint: Replace the strings by the constants.

i replaced but still i didn’t get the answer

Replace the strings in the case sentences and the action types:

still i have problem in my code

Possibly the tests do not accept your answer maybe to minor types. Try closing the constants statements with a semicolon.

i done but i didn’t get the answer

What test you not pass? Your code?