AWDESH·Follow1 min read·May 8, 2016--Sharedeclaring x = 2 inside bar function creates new ‘x’ and doesn’t override existing x.