I am using greeting variable inside function
function greet3() {
    greeting : 'HELLO GREET 3';
    this.greet = function () {
        console.log(greeting);
    };
}
this syntax does not give any error and also I am not able to fetch "greeting" in any case .I want to know what is happening here?
 
    