help to see if the following js oop code interprets private variables, instance variables, static variables, and public variables correctly.
by the way, what is variable a? What"s the name of a variable in oop?
var Oop = (function () {
var a = "A"
function Oop() {
// private
var _private = "private"
//
this.name = "james"
}
vue.prototype = {
constructor: Oop,
consoleName: function () { // public
console.log(this.name)
}
}
Oop.staticFunc = function () { } // static
return Oop
})()