var vs let

Open the developer console to see the result