JavaScript Periksa apakah argumen dilewatkan
function func(arg1, arg2) {
if (typeof arg2 === "undefined") {
arg2 = "defaultValue";
}
//Rest of function
}
TC5550