Local vs Global scope – JavaScript

Local scope Let’s start by declaring a variable inside a function called cool (just a name) to understand the difference between local and global scope Let’s declare a variable called localVariable with type var in our function as below var cool = function (){ var localVariable = 10; console.log('Inside function: ' +localVariable) } cool(); console.log('Outside…

Steps to set customized external terminal in VS Code

Step 1: Go to File -> Preferences -> User settings Step 2: Add one of the following line based on the environment to settings.json file // to run on OS X "terminal.external.osxExec": "Terminal.app" // to run on linux "terminal.external.linuxExec": "xterm" // to run windows "terminal.external.windowsExec": "%COMSPEC%" For example, if we want to set Git Bash…

%d bloggers like this: