For example, I have a method showTable that takes a JQuery object, and the showTable call is a parameter for the append method of that same object.
This is the result I'm going for:
body.append (this.showTable(body));
showTable returns an HTML string to append to body. But I don't like typing body twice, it feels clunky. How do make it implicit that body is the variable to be passed?
.appendwithin theshowTablefunction?showTablecare about whatbodyis at all?