Handling Dependent Promises-Lesson problem


While doing the above lesson I did what was told and I got all the green ticks but an error occured, saying unexpected identifier

here is my app.js

const {shopForBeans, soakTheBeans, cookTheBeans} = require('./library.js');

// Write your code below:
//const makeBeans = async () ={};
const makeBeans = async () ={
  let type = await shopForBeans();
  let isSoft = await soakTheBeans(type);
  let dinner = await cookTheBeans(isSoft);
// async function makeBeans()
// {

// }

and the following is the error that i’m getting after executing using node

let type = await shopForBeans();
SyntaxError: Unexpected identifier
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

Please help me resolve the error

I think you have an extra = at the beginning of the function

const makeBeans = async () ={

should actually be

const makeBeans = async () {

Thank you, I understood
I did not make it a arrow function, which I intended to make’
Just an FYI

const makeBeans = async () ={

should have been

const makeBeans = async () =>{


const makeBeans = async () {