Why does global variable get modified inside a function?

前端 未结 0 654
名媛妹妹
名媛妹妹 2021-01-27 13:54

Check this image

The value of the global variable f is being modified inside the function g. Both of the console logs print 7. I come from a python background and this do

相关标签:
回答
  • 消灭零回复
提交回复
热议问题