Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MyClass = (function () {
- // ctor
- function MyClass() {
- /** @type {string} */
- this.value = "";
- }
- MyClass.prototype = {
- /** @returns {number} */
- getValue: function () {
- this.value = "hello, world!";
- return 26;
- },
- };
- return MyClass;
- })();
- var myClass = new MyClass();
- var result = myClass.getValue();
- console.log(result);
Advertisement
Add Comment
Please, Sign In to add comment