Closure: Definition: When a function is able to access and exercise its lexical scope when it is executing outside its scope is called a closure. Here is a function code snippet where you can experience closure. Have a look at it.
Going a bit further, here is the day to day code from a javascript file that implements revealing module pattern. It also exercises the closure concept.
VS Code is a very good open source editor that I have been using a lot these days - both in the office and back at home. However, I will tell you what plugins I use to make my life easier when I work on my side projects at home. In the office, we have a fully loaded IDE which I don't think we need at home and also paying huge subscription price as well, is an unwanted expense.
Here are my picks -
Bookmarks: As the name implies, you can create bookmarks on your code files for easy search. Similar to Visual Studio. find it here
Docker: This helps you highlight the Dockerfile and docker related files code. Link is here
ESLint: The best linter tool that I have known and used. Link here
npm IntelliSense: To get the IntelliSense from the packages that you have installed, use this. Link here
Path Autocomplete: Importing files either using 'import' or 'require' then you need to have this. It helps fill the details. Link here
VS Code Icons: Who doesn't need a rich, glossy and amazing UI in the editor, just like in a full blown IDE? This extension recognises almost all the file types and has super representations of them. Link here
What extensions are you using? Drop a comment here. Thank you.
Here are my picks -
Bookmarks: As the name implies, you can create bookmarks on your code files for easy search. Similar to Visual Studio. find it here
Docker: This helps you highlight the Dockerfile and docker related files code. Link is here
ESLint: The best linter tool that I have known and used. Link here
npm IntelliSense: To get the IntelliSense from the packages that you have installed, use this. Link here
Path Autocomplete: Importing files either using 'import' or 'require' then you need to have this. It helps fill the details. Link here
VS Code Icons: Who doesn't need a rich, glossy and amazing UI in the editor, just like in a full blown IDE? This extension recognises almost all the file types and has super representations of them. Link here
What extensions are you using? Drop a comment here. Thank you.


