JSFiddle - React, Tailwind, and code Playground

by Skooljester

JavaScript

$("#test").click(function() {
    var iTest = $("*input").attr("data-answer");
    alert(iTest);
});
// First, build the array
var IBANInfo = [
    {
        countryCode: "AD",
        countryName: "Andorra",
        length: 24,
        bankBranchCode: "0  4n 4n",
        accountNum: "0  12   0"
    },
    {
        countryCode: "BE",
        countryName: "Belgi\u00EB",
        length: 16,
        bankBranchCode: "0  3n 0",
        accountNum: "0  7n   2n"
    },
    {
        countryCode: "BA",
        countryName: "Bosni\u00EB-Herzegovina",
        length: 20,
        bankBranchCode: "0  3n 3n",
        accountNum: "0   8n  2n"
    }
];
document.write("<table>");
for (var i=0; i<IBANInfo.length; i++) {
    document.write('<tr>');
    var countryInfo = IBANInfo[i]; 
    for(var j=0; j<IBANInfo[0].length; j++)
    {
        document.write('<td>Hello</td>');  
    }
    document.write('</tr>'); 
}
document.write("</table>");