freeCodeCamp Challenge Guide: Define an Action Creator

Define an Action Creator


Hints

Hint 1

A function is defined using the following syntax:

function functionName() {
  console.log("Do something");
}

Where console.log can be changed as per the need.

Hint 2

A value is returned using the return keyword


Solutions

Solution 1 (Click to Show/Hide)
function actionCreator() {
  return action;
}
2 Likes