Interview question Foo prototype

by Artem

JavaScript

// Q: will the something apper in console
'use strict';

function Foo() {
	
}


var f = new Foo();

Foo.prototype.bar = function () {
	console.log(1);
}


f.bar();

// A: "No"
// Which is not correct