Missing project error) after argument list

1

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++;
}
}
    
asked by anonymous 18.02.2017 / 18:29

1 answer

2

On line 20 , you do not concatenate the closing brackets.

Replace

setLogStr("[" + currHourStr + ":" + currMinStr "]  " + newLog,
  logStack + 1);
//                                            ^
//                                            |
//                                           aqui

by:

setLogStr("[" + currHourStr + ":" + currMinStr + "]  " + newLog,
  logStack + 1);
    
18.02.2017 / 18:39