frobozz - 2:42 am on Apr 17, 2013 (gmt 0)
This is admittedly trivial, but it seems in theory that it would be possible. Consider this code:
var myscript = document.createElement("script");
Is there a way to concatenate both of these operations into a single "statement," like this:
var myscript = (document.createElement("script")).setAttribute("src", url);
This doesn't work of course, with or without the added parentheses, but I'm thinking there must be a way to do it.