i want to concatenation string having some calculated values in between, so i tried the code below:
var html = '<tr>' +
function () {
var tds = ''
array.each(function (i, ele) { tds += '<td>' + i + '</td>' });
return tds;
} +
'</tr>';
But its not working. The function i used in concatenation as treating like a string itself !. Is there any way to do that ? Thank you