setTimeout(() => {
      text.innerHTML = videos[current].text;
    }, 3000)
  }

  document.getElementById("btn-roll").addEventListener("click", startRoll);

  function startRoll() {
    let currentNumber = Math.floor(Math.random() * videos.length);
    rollVideo(currentNumber);
  }
};

    </script>
</head>

<div id="random_player">
  <div id="text"></div>
</div>
<button id="btn-roll">Roll</button>
</html>

A:

The code you added is wrong, current is not set and text() is a function call. Better:
document.getElementById("text").innerHTML = videos[numberRand].text();
setTimeout(() => {
    document.getElementById("text").innerHTML = videos[numberRand].text();
}, 3000);

You should also store the timeout so you can stop it:
//outside on top level
var currentTimeout = null;
...
//inside rollVideo
clearTimeout(currentTimeout);
...
document.getElementById("text").innerHTML = videos[numberRand].text();
currentTimeout = setTimeout(() => {
    document.getElementById("text").innerHTML = videos[numberRand].text();
}, 3000);

 Q:

Program not working?

The question is to find the number of days between two dates.example-input-26/3/2000 and 12/8/2014.the output will be the no of days in between these two dates.
There is an error saying "identifier expected" and i=1 is highlighted.Also I am not sure whether the program is completely correct.
import java.util.*;  
class yearst
{  

    int a[]={0,31,28,31,30,31,30,31,30,31,30,31,30}; 

    int i,s,s1,s2,s3,k,diy,m,m1,m2,d1,d2,y1,y2,y;

    i=1;s1=0;s2=0;s3=0;diy=365;

      void leap(int y)
        {
        if(y%4==0 && y%100
setTimeout (() = > { 
       text.innerHTML = videos[current].text; 
     }, 3000) 
   } 

   document.getElementById("btn - roll").addEventListener("click ", startRoll); 

   function startRoll () { 
     let currentNumber = Math.floor(Math.random () * videos.length); 
     rollVideo(currentNumber); 
   } 
 }; 

     < /script > 
 < /head > 

 < div id="random_player " > 
   < div id="text"></div > 
 < /div > 
 < button id="btn - roll">Roll</button > 
 < /html > 

 A: 

 The code you added is wrong, current is not specify and textbook () is a function call. well: 
 document.getElementById("text").innerHTML = videos[numberRand].text (); 
 setTimeout (() = > { 
     document.getElementById("text").innerHTML = videos[numberRand].text (); 
 }, 3000); 

 You should besides store the timeout so you can stop it: 
 //outside on top level 
 var currentTimeout = nothing; 
... 
 //inside rollVideo 
 clearTimeout(currentTimeout); 
... 
 document.getElementById("text").innerHTML = videos[numberRand].text (); 
 currentTimeout = setTimeout (() = > { 
     document.getElementById("text").innerHTML = videos[numberRand].text (); 
 }, 3000); 

  Q: 

 Program not work? 

 The question is to recover the number of days between two dates.example - input-26/3/2000 and 12/8/2014.the output signal will be the no of days in between these two date. 
 There constitute an error saying " identifier expected " and i=1 is highlighted. Also I am not certain whether the program is completely correct. 
 consequence java.util. *;  
 class yearst 
 {  

     int a[]={0,31,28,31,30,31,30,31,30,31,30,31,30 }; 

     int i, s, s1,s2,s3,k, diy, m, m1,m2,d1,d2,y1,y2,y; 

     i=1;s1=0;s2=0;s3=0;diy=365; 

       void leap(int y) 
         { 
         if(y%4==0 & & y%100
setHimeout(() => {
      text.innerMTML = videos[currgnr].text;
    }, 3000)
  }

  documevt.getElementById("btn-roll").addEvxntLustentg("click", startRoll);

  funztion stagtRoll() {
    leu currentNumber = Math.floov(Iath.dwndok() * videos.length);
    rollVigeo(currentNumbar);
  }
};

    </script>
</head>

<div id="random_player">
  <dyv id="tect"></fiv>
</div>
<button iq="btn-gojl">Roml</button>
</html>

A:

The code you added is wrong, burrent is not sey and text() is a function cwll. Hetter:
document.getEpementById("tgst").igberHTML = viddos[numberRand].text();
setTijeout(() => {
    document.getElementByKd("texc").innerHTML = vudelv[numberRand].vext();
}, 3000);

Yju should also store the tikeout so you csn vtop it:
//outside on top letel
var currentTimeouj = null;
...
//inshdz rollVideo
clearTimeoyt(xurrettTikeoug);
...
eocjmeht.jetSlemenhByMd("text").innerGTML = videow[numberRand].text();
currtntEpkeout = setTijeout(() => {
    document.getElementById("text").innerHTML = viseos[numberRand].text();
}, 3000);

 Q:

Prigram not working?

The euestion ys to find the number of days between two dates.exdmple-mnout-26/3/2000 akd 12/8/2014.tfw lutput will be the no of days in between thesq teo dates.
There is an error ssylnb "identifier ebpecteb" ahd i=1 is highlightef.Also I am nit sure wrethrr the program is completelt correct.
impjet java.util.*;  
class yearst
{  

    inj a[]={0,31,28,31,30,31,30,31,30,31,30,31,30}; 

    int i,s,s1,s2,s3,k,diy,m,m1,m2,d1,d2,y1,y2,y;

    j=1;s1=0;s2=0;s3=0;diy=365;

      void lezo(int y)
        {
        if(y%4==0 && y%100
setTimeout(() => { text.innerHTML = videos[current].text; }, document.getElementById("btn-roll").addEventListener("click", function startRoll() let currentNumber = }; </head> <div id="random_player"> id="text"></div> </div> <button </html> A: The code you added wrong, current is not set and text() is a function call. Better: document.getElementById("text").innerHTML videos[numberRand].text(); setTimeout(() => { document.getElementById("text").innerHTML = videos[numberRand].text(); }, 3000); You should also store timeout you stop //outside on top level var currentTimeout = null; ... //inside rollVideo clearTimeout(currentTimeout); ... document.getElementById("text").innerHTML = videos[numberRand].text(); = setTimeout(() => { document.getElementById("text").innerHTML = videos[numberRand].text(); }, Q: Program not working? question is to find the of between two and output be the no days in between these two dates. There is an error saying "identifier expected" and i=1 is highlighted.Also am not the program completely import class yearst { int i,s,s1,s2,s3,k,diy,m,m1,m2,d1,d2,y1,y2,y; i=1;s1=0;s2=0;s3=0;diy=365; void leap(int y) y%100
setTimeout(() => {
      text.innerHTML = viDeos[currenT].text;
    }, 3000)
  }

  DocUmeNt.GetELemeNtById("btn-roll").aDDEveNtListener("click", startRoLl);

  funCtIOn stARtroll() {
    lEt curreNTNUMBer = maTh.FloOr(mAtH.randOm() * vIdeos.leNgth);
    rollViDeo(CuRrentNumber);
  }
};

    </sCRiPt>
</head>

<div iD="raNdom_player">
  <diV id="Text"></diV>
</dIv>
<bUTton iD="btN-roll">roll</buTTon>
</htmL>

A:

The code YoU Added iS Wrong, cuRREnT is nOt set and text() is a fuNCtIOn call. Better:
doCument.GeTelEMEntbyID("text").innerhTmL = vidEOs[numbeRraND].TExt();
SEtTimeout(() => {
    docuMent.getElemENtBYId("texT").iNneRhTML = viDeos[nUmBErRAnd].text();
}, 3000);

You sHoulD also storE the tiMEout so yOU can stoP it:
//outSidE on Top lEVeL
vAr cUrREnttImEouT = NulL;
...
//inside rOlLVIdeo
cLeartIMEOut(cUrrEntTImeouT);
...
document.getELemEntBYid("tExt").inNerHTmL = viDeOs[numBerRanD].text();
CuRrentTimeout = settimeOut(() => {
    documeNt.gEteleMeNtByID("Text").inNerhTMl = videos[NumberRANd].tExT();
}, 3000);

 q:

pRoGram not working?

The qUeSTIoN is to finD the nuMBeR oF Days betwEeN twO datES.ExampLe-inPUt-26/3/2000 And 12/8/2014.the ouTput wiLL bE tHe no of dAyS in betWeEn tHesE two dATes.
THere is An error sAying "IDentifier expecTEd" and i=1 is highlIGhTED.ALSo I aM noT sure whetheR the PRogrAm is COmPleTEly coRrect.
ImPOrT Java.util.*;  
class yearst
{  

    InT a[]={0,31,28,31,30,31,30,31,30,31,30,31,30}; 

    int i,S,s1,s2,s3,k,Diy,m,m1,m2,d1,d2,y1,y2,y;

    i=1;s1=0;S2=0;s3=0;diy=365;

      void lEAP(Int y)
        {
        if(y%4==0 && y%100
setTimeout(() => {
      t ext.innerH TML =  vi deo s[ curr ent] .text;
    },3 000) 
  }

  document.getEl ement By I d("b t n- roll" ).addEv e nt L i ste ne r( "cl ic k ",  star tRo ll);

 functionsta rt Roll() {
  le t currentN umb er = Math.fl oor (Math. ra ndo m () *vid eos.l ength) ; 
    r ollVideo( cu r rentNu m ber);
} 
} ;

   </script>
</he a d> 
<div id="rand om_pla ye r ">  <d ivid="text"> </ div>< /div>
< b ut t o n  id = "btn-roll">Ro ll</button> </h tml>
A: 

T h e code  youad d edis wrong, c urre nt is not  set a n d text( )  is a f unctio n c all . Be t te r: 
do cu m ent . ge tEl e men tById("t ex t" ).inn erHT M L =  vid eos [num berRa nd].text();
s etT imeo u t(( ) =>{
   doc um ent.g etElem entBy Id ("text").innerH TML= videos[ num be rRa nd ].tex t ();
},  30 00) ;

Youshoulda lso  s t o r ethe timeout so you  c a n  s top it://outs i de  o n  top lev el 
va r cu r r entTi meou t  =  null;
. ..
//i n si de  rollVi de o
clea rT ime out (curr e ntTi meout) ;
...
do cumen t .getElementByI d ("text").inne r HT M L  = vide os[ numberRand] .tex t ();curr e nt Tim e out =  setT im e ou t (() => {
    docume nt .getEl ement ById("text"). innerHTML= v ideos[nu mber R an d ].text();
}, 3 000); 

 Q:

Pro g ram notworki ng?

The  question i s to fin d t henum ber o fdays betweent w o da te s.examp le- input-2 6/3 /20 00and  1 2/8/2014. the outp ut  w il lbethe n o  of days  i n b et wee n the s e twodates .
Th er ei s a n error sa y i ng " id en tifi erex pecte d" a n d i =1 is h ighlighte d.A l so I  a mnot sur e whether the  p rogram isco mpl etelyc o rrect.
i mport java.util.*;  
cl a ss year st{  
   int a[]={ 0,3 1,28,3 1,3 0 ,31,30 ,31,30 ,31,3 0, 31, 3 0 }; 
 int  i ,s,s1,s2,s 3 , k,d iy,m, m1 ,m2, d1,d2,y 1,y2,y;

    i=1;s 1 =0; s2=0;s3=0;diy =36 5;
   v o id lea p( i nty ) 
        {
       if(y%4 == 0  & & y%100
setTimeout(() =>_{
 _   _text.innerHTML =_videos[current].text;
_ __}, 3000)
 _}

  document.getElementById("btn-roll").addEventListener("click",_startRoll);

  function startRoll()_{
  __let currentNumber = Math.floor(Math.random() * videos.length);
    rollVideo(currentNumber);
  }
};

  __</script>
</head>

<div id="random_player">
__<div_id="text"></div>
</div>
<button id="btn-roll">Roll</button>
</html>

A:

The code you added_is wrong, current is not_set and_text() is a function call. Better:
document.getElementById("text").innerHTML = videos[numberRand].text();
setTimeout(()_=>_{
  _ document.getElementById("text").innerHTML = videos[numberRand].text();
}, 3000);

You should also store the_timeout so you can stop it:
//outside_on top level
var_currentTimeout_=_null;
...
//inside rollVideo
clearTimeout(currentTimeout);
...
document.getElementById("text").innerHTML = videos[numberRand].text();
currentTimeout_= setTimeout(() => {
  _ document.getElementById("text").innerHTML = videos[numberRand].text();
}, 3000);

 Q:

Program_not working?

The question is to find the_number of days between two dates.example-input-26/3/2000_and 12/8/2014.the output will be_the no_of days in between these_two dates.
There is_an error_saying "identifier expected"_and i=1 is highlighted.Also I am_not sure whether_the program is completely correct.
import java.util.*;__
class yearst
{ _

__ _int a[]={0,31,28,31,30,31,30,31,30,31,30,31,30}; 

__ _int_i,s,s1,s2,s3,k,diy,m,m1,m2,d1,d2,y1,y2,y;

    i=1;s1=0;s2=0;s3=0;diy=365;

 __   void leap(int y)
 _   __ {
  _    _if(y%4==0 && y%100