on screen resize javascript code example
Example 1: javascript resize event
window.resize = event => {
// Code here
};
Example 2: javascript on screen width change
$(window).resize(function() {
/* Do shit */
console.log('window was resized');
});