Answered
Why can't a function return an object or array, but it can return a value?
I originally wanted to set the properties for creating a new cell style.
But it reminds me that the style is undefined?
Can it return sum but not newSty?
get('A', 'B');
alert(newSty);
//alert(sum);
//newSty.properties={
//}
function get(a, b) {
var baseSty = app.documents[0].cellStyles.itemByName(a);
sum = a + b;
var newSty = baseSty.parent.cellStyles.itemByName(b);
//return sum;
return newSty;
}


