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());
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());
 
    
    