In the function below, IE says that \')\' is missing:
function padZeros(num, size = 4) { var s = num+\"\"; while (s.length < size) { s = \"0\"
In Microsoft Edge an d IE is not supported direct pass the value in function. It is consider as Error file, So that we are getting error
Try below code
function padZeros(num) { var size = 4; var s = num+""; while (s.length < size) { s = "0" + s; } return s; }