Apply for Zend Framework Certification Training

Javascript





let firstArray = [23,45,67,89,12];
   let secondArray = [32,54,76,98,21,55];
   let thirdArray =[];
   for(i=0; ; i++){
        if(firstArray[i] == undefined){
            break;
        }
   }
   for(j=0; ;j++){
        if(secondArray[j] == undefined){
            break;
        }
   }
   k= i+j;
   let s=0;
   for(p=0;p     if(p < i){
        thirdArray[p] = firstArray[p];
    }else{
       console.log(p)
        thirdArray[p] = secondArray[s]
        s++;
    }
   }
   console.log(thirdArray)

< Mysql Questions Part 3 Mysql Questions Part 5 >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top