Kabra Logitech interview question

What will be the output of the following JavaScript code and why? let a = 10; (function() { console.log(a); // Line 1 let a = 20; console.log(a); // Line 2 })();