This is just a little bit of research for creating the Arrays, these codes have been trie and tested and are ready to be implemented into our script when we get to that stage.
Example 1:
E-mails = new Array();
E-mails[0] = “example@hotmail.co.uk”;
E-mails[1] = “example2@hotmail.co.uk”;
E-mails[2] = example3@hotmail.co.uk;
E-mails[0] = “example@hotmail.co.uk”;
E-mails[1] = “example2@hotmail.co.uk”;
E-mails[2] = example3@hotmail.co.uk;
Example 2:
E-mails = new Array(“example@hotmail.co.uk”,“example2@hotmail.co.uk”,“example3@hotmail.co.uk”);
Example 3:
E-mails = new Array();
E-mails["hotmail"] = “example@hotmail.co.uk“;
E-mails["gmail"] = “example@gmail.co.uk”;
E-mails["yahoo"] = example@yahoo.co.uk”;
E-mails["hotmail"] = “example@hotmail.co.uk“;
E-mails["gmail"] = “example@gmail.co.uk”;
E-mails["yahoo"] = example@yahoo.co.uk”;
…
I think that for our Organism we will use either example 1 or example 3, example 1 would be good for simplicity and understanding of code but example 3 would be good if we needed to get a little more complex with the email system as it uses larger amounts of detail.
Advertisement