I am learning about this keyword in Javascript. I am trying a way to access an outer object property with the inner object function. For example :
var outer = {
    prop : 'prop',
    func : function(){
      return this.prop;
    },
    inner : {
      func : function(){
        return this.prop;
      }
    }
  }
  --> outer.func() : 'prop'
  --> outer.inner.func() : undefined
I understand why it doesn't work but I don't know how to access the prop of the outer object.
 
     
     
     
     
    