You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this example will help you, in the picture below, refValue passed by ref, has the same address and value with num; argument value passed by value, it just has the same value with num, the address is different.
And recommended that you read the following document:
init:
modify value, it will point another object and doesn't effect the original array
modify refValue, it point a new object and will change the original array element's value
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: