Answer the question
In order to leave comments, you need to log in
How to pass an array to a function?
I started learning node.js and then a question came up, because I'm not very good with regular js either. How can I pass an array like this to a function:
var mass = {
a: "",
b: ""
};
function func(){
mass = {
a: "a",
b: "b"
};
}
func(mass.a, mass.b);
Or how is it done?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question