Why null is used | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why null is used

7th Apr 2020, 2:10 PM
Sarthak Gupta
Sarthak Gupta - avatar
4 Answers
0
Comment to each quiz is at lower left, not upper right. https://www.sololearn.com/post/131750/?ref=app
7th Apr 2020, 2:13 PM
Gordon
Gordon - avatar
0
I think you are at this lesson https://www.sololearn.com/learn/JavaScript/2978/ But I don't see a lesson or quiz relating to null. Which part are you having problem with?
7th Apr 2020, 2:16 PM
Gordon
Gordon - avatar
0
1st example
7th Apr 2020, 2:17 PM
Sarthak Gupta
Sarthak Gupta - avatar
0
Oh I see now. Your question is a good question indeed. Firstly, let us look at Mozilla Doc: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply The first argument to Function.prototype.apply should be this object. "You can assign a different this object when calling an existing function. this refers to the current object (the calling object). With apply, you can write a method once, and then inherit it in another object, without having to rewrite the method for the new object." That's a way of using function with an array to pass into the function as a list arguments, before Spread operator is implemented.
7th Apr 2020, 2:23 PM
Gordon
Gordon - avatar