--- title: Define an Action Creator --- # Define an Action Creator --- ## Hints ### Hint 1 A function is defined using the following syntax: ```javascript 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) ```javascript function actionCreator() { return action; } ```