let a = 10;
let b = 5;
function sum(num,num2){
return num+num2;
}
let c = sum(a,b);
console.log(c);//15
let dateStart = "2020-04-03";
let timeStart = "11:00:02";
var date = Date.parse(dateStart+' '+timeStart);
var timeoutMin = 150;
var timeout = timeoutMin * 60;
(function q(){
let dateNow = new Date();
var t = (dateNow - date)/1000;
if(t >= timeout){
$(".reglament").text("Время вышло")
}else{
var showTime = timeout - t;
var h = "0"+Math.floor(showTime/3600);
var m = "0"+Math.floor(showTime%3600/60);
var s = "0"+ Math.floor(showTime%60);
h = h.substr(-2);
m = m.substr(-2);
s = s.substr(-2);
$(".reglament").text(`${h}:${m}:${s}`)
}
setTimeout(q,1000);
})();