Class inheritance with method in javascript -
I'm new to javascript app development. When I came up with the function and I have found a code for all
function perarizer (value) {console.log (this.setValue ()); } Parenizor.method ('setValue', function () {console.log ('called');}); Parenizor.method ('getValue', function () {return1;}); Parenizor.method ('toString', function () {return2;}); And when I type the function
var a = new paragere (1)
A. SetValue ()
It gives me an error such as not a function undefined .. why is it ?? I hope that someone here can find my fault..धन्यवाद .. :)
it seems That your code comes by Douglas Crockford.
I think you have not read this part:
To create examples of work above, I wrote four methods, firstly, the method method, which combines an example method for a class.
function.propytip.mission = function (name, fanc) {this.prototype [name] = fancy; This return; };
Comments
Post a Comment