Tag
JavaScript executes code in two phases: Memory Creation Phase (Variable Setup): This is where JavaScript gets ready to work. It sets up s…