I need a way to implement the following C++ in javascript.
struct login
{
char username[14];
char password[7];
char verificationCode[11];
int timesLoged;
};
login allLogins[] =
{
{"none", "", "",0},
{"user1", "159951", "",0},
{"user2", "123321", "",0},
{"user3", "456654", "",0}
};
I would like to be able to refer to each member in similar/same fashion.
String currentLoginName = allLogins[3].username