Hi I'm learning now JS Classes now and have one question, that can't understand:
var o = new F(4)
function F(temp){var a=22; this.temp = temp}
alert(o.temp); // print 4
alert(o.a); // print undefined
From point of OOP: "F" is class/constructor, "o" is object, "temp" is field of object, so what is variable "a" and how to get it?