attach window event listener to an arrow function code example
Example: js addeventlistener
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});