Как генерировать лист в Javascript и output строку
1 2 3 4 5 6 7 8 9 10 11 12 |
"listgames": function(full_name) { //calls the keys and object var output = ""; for(var i = 0; i < this.type.length; i++){ //this is equaled to course for var course var ta = this.type[i]; //this is equaled to var "course" output += type.Yes_No; if(full_name){ output += " " + type.Yes_No; } output += " | "; } console.log(output); } |