const exchangeData = {
binance: { fees: ‘0.1%’, security: ‘High’, coins: 150 },
coinbase: { fees: ‘1.49%’, security: ‘Medium’, coins: 50 }
};
function compareExchanges() {
const exchange1 = document.getElementById(‘exchange1’).value;
const exchange2 = document.getElementById(‘exchange2’).value;
const data1 = exchangeData[exchange1];
const data2 = exchangeData[exchange2];
const resultDiv = document.getElementById(‘comparisonResults’);
resultDiv.innerHTML = `
Feature |
${exchange1} |
${exchange2} |
Fees |
${data1.fees} |
${data2.fees} |
Security |
${data1.security} |
${data2.security} |
Coins |
${data1.coins} |
${data2.coins} |
`;
}