im kinda newbie, and im trying to make a function in JS, also in Golang, to make N objects with N proprieties.
(Js)Basically I want a function that returns N objects with N proprieties. So for I got this:
function objects(name, age, idioms,school) {
this.name = name;
this.age = age;
this.idioms= idioms;
this.school = school;
}
I don't even know how to do this in golang....
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment