variables inside the function and order of Precedence in JS - Kevin Powell - Community