Showing 1 of 1 total issue
Avoid deeply nested control flow statements. Open
Open
for (var i = 1; i < 4; i++) {
msg = "";
msg = key[1].toUpperCase() + ": " + data[i][key[1]] + "\n" + key[2].toUpperCase() + ": " + data[i][key[2]] + "\n" + key[3].toUpperCase() + ": " + data[i][key[3]];
bot.sendMessage(chatId, msg);
}