chandra penugonda Posted on Aug 2, 2023 • Edited on Aug 12, 2023 What will the console log in this example? #javascript #programming #beginners #interview What will the console log in this example? var foo = 1 var foobar = function() { console.log(foo) var foo = 2 } foobar() Enter fullscreen mode Exit fullscreen mode Output undefined Enter fullscreen mode Exit fullscreen mode Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)