Monday, September 5, 2016


state = false;
changeState(state){
state = true;
}
log(state);

In the above code
  • If we are passing by value, output is false
  • If we are passing by reference, out put is true.

See the simple example :

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Powered by Blogger.

Popular Posts