pass vector as a parameter of a function javascript code example
Example: cpp function takes in vector
// Make sure to specify the type of the contents, as in:
void func(vector<int> vect)
{
vect.push_back(30);
}
// Make sure to specify the type of the contents, as in:
void func(vector<int> vect)
{
vect.push_back(30);
}