Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				
Froot74576yfunction Asd() {
this.title = "hello";
}
Asd.title = "macaroni";
Asd.say = () => console.log(this.title);
Asd.prototype.say = function() {
console.log(this.title);
}
const thing = new Asd();
setTimeout(thing.say, 1000)
// What gets printed? - 
				
				@Froot well I mean, that piece of code is so confusing it basically amounts to returning a random string 😋
@Archeelux oh now I'm intrigued. With everyone praising vue's documentation, I didn't expect this. Care to elaborate? - 
				
				
Froot74576y@Commodore hehe. It's a good snippet to test if someone really knows JS. Has some under the hood things in there and some added confusion 😀 - 
				
				
Froot74576y@oreru yeap. undefined or if window.title exists then that 😃
Btw it has nothing to do with the DOM. It's how 'this' reference works 😃 

I understand JavaScript but I cannot for the love of fucking JavaScript Zeus understand how the fuck all those front end technologies work. Maaaaaaaan I suck at my job.
rant