> var v = Math.random() // var means local variable
> v
0.012659968143515665
> w = Math.random()
0.055781313840123414
What is the key difference between the variable v and w? Scope? In other words, when should I use local variables and when I should not?
I am focused on MongoDB interactive shell environment and it's usage with Python too.