Use global variable scope in nested function. This variable update in inner function than display that variable in outer function.
Assign a variable $a = 10
$a = 10