Which also means the suggestion to use ?? has a different result then using a default param. ?? will catch both null and undefined, where as a default parameter will only trigger on undefined.
function test(a = 1) {
console.log(a)
}
test() // -> 1 is printed
test(null) // -> null is printed
test(undefined) // -> 1 is printed