Want to share my Phone screen interview. Only focussed on Javascript.
Explain Event Bubbling
What is the output for below code and how will you correct it
function bar(){
return a;
}
this.baz = function() {
return a;
};
};
Foo.prototype = {
this.biz: function() {
return this.a;
},
};
const f = new Foo(7);
f.bar(); //
f.baz(); //
f.biz(); //
/**
// HTML
// ---------
// JS
// ---------
$(window).on('scroll', scrollHandler);