And why do you call a table an "excel-like" app? Can it so =SUM(); can it do search and replace or the over 9000 other features of excel? No... it's a table, with a editor.
And why do you call a table an "excel-like" app? Can it so =SUM(); can it do search and replace or the over 9000 other features of excel? No... it's a table, with a editor.
var DATA={ SUM: function(a,b) { return a+b; } }
Nice demonstration of language features, like 'with', that we usually take as 'bad practices'.
function SUM() { var sum = 0; for (var i = 0; i < arguments.length; i++) { sum += arguments[i]; } return sum; }
Now you can do stuff like =SUM(A1, B1, C2) and it works like expected.
You could, of course, write a sum function, and reference it wherever you like.
On the other, I imagine some PM is going to read this and expect their developers to get a google docs competitor out in a day!