0

I stumbled upon this issue accidentally:

const a = function() {
  return 
  {
    name: "Vijay Kumar"
  }
}
console.log(a());

This code above is printing undefined in console. I searched through many similarly titled questions, but those are all talking about different problems.

adiga
  • 34,372
  • 9
  • 61
  • 83
Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86

0 Answers0