0

I am trying to figure out the reason why this snippet returns as undefined.

Thanks in advance

let x = function() {
    return
    {
        message: 'hello'
    }
}

console.log(x());
flyingfox
  • 13,414
  • 3
  • 24
  • 39

0 Answers0