mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
14 lines
261 B
JavaScript
14 lines
261 B
JavaScript
function Class() {
|
|
this.test = "test";
|
|
}
|
|
Class.prototype.initialize = function(){
|
|
console.log("initialize");
|
|
}
|
|
Class.prototype.getTest = function(){
|
|
return this.test;
|
|
}
|
|
|
|
var toto = new Class();
|
|
|
|
result = toto.test == "test";
|