Advertisement
reqtrex

Untitled

Jan 20th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    private createFlashcards(){
  2.         let flashcards: Flashcard[];
  3.         let i: number;
  4.         let word1 = this.wordsW;
  5.         let word2 = this.translatedWords;
  6.         let example1 = this.sentence;
  7.         let example2 = this.translatedSentence;
  8.  
  9.  
  10.         for (let entry of this.wordsW) {
  11.             let flashcard: Flashcard = {
  12.                 id: 3,
  13.                 words1: word1[i],
  14.                 words2: word2[i],
  15.                 example1: example1[i],
  16.                 example2: example2[i]
  17.             }
  18.             i++;
  19.             ->>> flashcards.push(flashcard);
  20.         }
  21.         return flashcards;
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement