I want to make default parameter in javascript , so can i ?
jm.toInt = function (num, base=10) {
return parseInt(num,base);
}
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
No comments:
Post a Comment