Build a sample card layout in codepen
Use flexbox for the text node layout
myCalculator.add(2,3)
What code is needed to make this return 5?
window.addEventListener('scroll',function() {
console.log('scrolling');
});
This is a very noisy event, how do you get it to log only once when a user is done scrolling?
// if you execute the following in a console:
console.log(this)
// you get: the window object
//what do you get here?
document.body.addEventListener('click',
function() {
console.log(this);
}
)
/* how do you change the above to make
this
the window object in the listener function?
*/
Event binding