Created
March 3, 2016 08:36
-
-
Save bubnenkoff/467b865075a2dd1e87ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var question of this.questions) | |
{ | |
var firstLevelAnswerIsSelectedCount = 0; // будет накапливать значения всех, что вовпросов в первом уровне вложенности | |
for(var answer of question.answers) | |
{ | |
if (answer.isSelected) | |
{ | |
console.log('Before: ', answer.isSelected); | |
firstLevelAnswerIsSelectedCount++; | |
console.log(firstLevelAnswerIsSelectedCount); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment