Home > front end >  What's the difference between this. Num and var num
What's the difference between this. Num and var num

Time:10-08

the problem how to analysis? What's the difference between this. Num and var num

CodePudding user response:

1. This is the most important is to identify his pointing to the problem: that is, any is called, who in the call, you can understand,
2. According to this problem, you yourself output fn () for 65, don't want to is wrong, because the return of the following function does not return any value, so the fn () after also won't get numerical, so the result should be undefined, such as
3. The var num=45 is best understood, he can be split into var num; Num=45; Because this is in the implementation of the function of the internal, and you will find that the num=45 is in the end, basic need not think too much, so you should know the final result of the num here should be 45,
4. Var fn=obj. Here the fn () should be equivalent to the obj. Fn (), is still the same result, because not received any return value, so the result of the execution should is undefined,
* * said ji ji abut a heap of,,,,
  • Related