Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private createFlashcards(){
- let flashcards: Flashcard[];
- let i: number;
- let word1 = this.wordsW;
- let word2 = this.translatedWords;
- let example1 = this.sentence;
- let example2 = this.translatedSentence;
- for (let entry of this.wordsW) {
- let flashcard: Flashcard = {
- id: 3,
- words1: word1[i],
- words2: word2[i],
- example1: example1[i],
- example2: example2[i]
- }
- i++;
- ->>> flashcards.push(flashcard);
- }
- return flashcards;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement