JavaScript Passando valor indefinido
function test(x = 1) {
console.log(x);
}
// passing undefined
// takes default value 1
test(undefined); // 1
SAMER SAEID
function test(x = 1) {
console.log(x);
}
// passing undefined
// takes default value 1
test(undefined); // 1