Home | Mailing List | Blog | Tutorial Videos

Curly Q

What will the foo() and bar() functions return when logged to the console together?

const foo = () => {
  return {
    foo: "foo"
  };
}

const bar = () => {
  return
  {
    bar: "bar"
  }
}

console.log(foo(), bar())

Select one: