jitender singhwebdeveloper2212.hashnode.dev·Sep 8, 2022Everything you need to know about Scope and lexical environment in JavaScript.Before moving further to learn about Scope. First let's write a simple code. function print() { console.log("hello"); } print(); As we know the above code gives us an output of hello. But instead of writing this if we write like this function pri...4 likes·52 readsiwritecodeAdd a thoughtful comment1 commentTop commentsDeepti Dubey·Sep 10, 2022Sep 10, 2022Nice explanation ·Reply