Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function finalAssem(){
- await finish();
- ResultArray = [];
- function author_data(title, name,linkKarma,commentKarma) {
- this.name = name;
- this.title = title;
- this.linkKarma = linkKarma;
- this.commentKarma = commentKarma;
- }
- function array_element(name, title, linkKarma, commentKarma) {
- this.name = name;
- this.title = title;
- this.linkKarma = linkKarma;
- this.commentKarma = commentKarma;
- //Don't do both of these -- choose which is appropriate
- //Create an empty array
- //this.array_element = new Array();
- //or Create an array with one task already defined based on this name and number
- this.array_element = [new array_element(name, title, linkKarma, commentKarma)];
- }
- var j;
- for(j = 0;j<uf_authors.length;j++){
- ResultArray[j] = new array_element(uf_authors[j], uf_titles[j],LinkKarmas[j], CommentKarmas[j]);
- }
- addHTML(ResultArray);
- console.log(ResultArray);
- }
- finalAssem();
Advertisement
Add Comment
Please, Sign In to add comment