I can\'t understand why variables act so strange when declared inside a function.
In the first function I declare with let the variabl
first
let
It's because of when you don't use let or var then variable is getting declare on the fly, better you declare like following.
var
let a = 10; let b = 10; let c = 10;