1 function get_table(data) {
2 let result = ['<table border=1>'];
3 for(let row of data) {
4 result.push('<tr>');
5 for(let cell of row){
6 result.push(`<td>${cell}</td>`);
7 }
8 result.push('</tr>');
9 }
10 result.push('</table>');
11 return result.join('\n');
12 }
13