How to generalize a function?

It would be nice to see what your functions do.

But in your functions, you can declare:

var j={"id":"return of your function string here"};
JSON.stringify(j); // '{"id":"return of your function string here"}'

Leave a Comment