Posts

Showing posts from September, 2021

Hoisting in JavaScript

Image
Hoisting is a phenomenon in JavaScript, in which we can access variables and functions without any error before their initialization. This happens because even before the code starts executing, memory is allocated to variables and functions. JavaScript is synchronous and single threaded language where everything happens inside a Global Execution Context. When we run a JS program, an execution context is created, which is further divided into two phases: Memory Allocation Phase (Variable Environment) Code Execution Phase (Thread of Execution) In the first phase, the entire program is skimmed line by line and memory is allocated to functions and variables. In case of variables, undefined is stored as a placeholder and in case of functions, the whole code of function is stored. In the second phase, the code is actually executed line by line. Undefined keyword is now replaced by actual values of variables. When there is a function invocation, a entirely new execution context is created whi

Make Your First Pull Request!

Image
  🀝 First time contributing? Will help you out. πŸ‘ Refer to the following articles on the basics of Git and GitHub, in case you are stuck: Getting started with Git and GitHub Forking a Repo Cloning a Repo How to create a Pull Request If you don't have git on your machine,  install it . πŸ’₯  How to Contribute Take a look at the Existing Issues or create your own Issues! Wait for the Issue to be assigned to you after which you can start working on it. Fork the Repo and create a Branch for any Issue that you are working upon. Read the Code of Conduct Create a Pull Request which will be promptly reviewed and suggestions would be added to improve it. Add Screenshots to help knowing what this Script is all about. How to make a Pull Request If you think that you can add a new feature or want to fix a bug. You can start contributing by following the below instructions: Create a folder at your desire location (usually at your desktop). Open Git Bash Here Create a Git repository. Run command