What would be the output of the following code snippet? [Prototypes & Scopes]

@Yomesh Gupta
var name = "Puneet";

function Engineer() {
	this.name = "Yomesh";
}

console.log(new Engineer().name);
Engineer.prototype.name = "Saloni";
Engineer.prototype.channel = "https://bit.ly/devtools-yt";
console.log(new Engineer().channel);
console.log(new Engineer().name);
Option 1
Puneet
https://bit.ly/devtools-yt
Yomesh
Option 2
Puneet
https://bit.ly/devtools-yt
Saloni
Option 3
Yomesh
https://bit.ly/devtools-yt
Yomesh
Option 4
Puneet
undefined
Yomesh
Option 5
Puneet
https://bit.ly/devtools-yt
Puneet
Do you see value in our efforts?

Devtools Tech is a free platform for Frontend Engineers. It takes a lot of time, effort, and finanical resources to keep the platform running. If you see any value in our work and would like to support us then you can do using the following options.

InternationalDomestic