I don't understand how this works. can someone explain it to me? Especially the variable name "prepand" which I've seen as "prepend" when I look it up. Also, what does the ? mean in (hour>12)?
var today = new Date();
var day = today.getDay();
var daylist = ["Sunday","Monday","Tuesday","Wednesday 
","Thursday","Friday","Saturday"];
       console.log("Today is : " + daylist[day] + ".");
        var hour = today.getHours();
        var minute = today.getMinutes();
        var second = today.getSeconds();
        var prepand = (hour >= 12)? " PM ":" AM ";
        hour = (hour >= 12)? hour - 12: hour;
if (hour===0 && prepand===' PM ') 
{    
   if (minute===0 && second===0)
   {  
      hour=12;
      prepand=' Noon';
   }  
   else
   {  
      hour=12;
      prepand=' PM';
   }  
}
if (hour===0 && prepand===' AM ') 
{    
   if (minute===0 && second===0)
   {  
      hour=12;
      prepand=' Midnight';
   }  
   else
   {  
      hour=12;
      prepand=' AM';
   }  
}  
console.log("Current Time : "+hour + prepand + " : " + minute + " : " + second);
 
     
     
    