Good afternoon, I have a problem with my project and I have not been able to figure out what is causing the problem. Any help is appreciated.
function logOnConsole(newLog) {
currDate = new Date();
currHour = parseInt(currDate.getHours());
currMin = parseInt(currDate.getMinutes());
if(currHour < 10) {
currHourStr = "0" + currHour;
} else {
currHourStr = "" + currHour;
}
if(currMin < 10) {
currMinStr = "0" + currMin;
} else {
currMinStr = "" + currMin;
}
if(logStack == 10) {
shiftLog("[" + currHourStr + ":" + currMinStr + "] " + newLog);
} else {
setLogStr("[" + currHourStr + ":" + currMinStr "] " + newLog,
logStack + 1);
logStack++;
}
}