+ 1
Why do we have to add Null here?
myFunction.apply(null, args.concat(4)); Why do we have to add null here to not cause an error?
3 Réponses
+ 3
this is in python isn't it?
+ 2
the function you have probably expects a object and if it doesn't get it, an error occurs.
null can be parsed instead of an object
0
function myFunction(w, x, y ,z){
console.log(w + x + y + z)
}
//is the fuction