The JavaScript warning “reference to undefined property” occurs when a script attempts to access an object property that doesn’t exist. Examples Invalid Cases In this case, the property bar is an undefined property, so a ReferenceError will occur. Valid Cases To avoid the error, you need to either add a definition for ‘bar’ to the… Continue reading Resolve ReferenceError: reference to undefined property “x”