I'm new with Responsive Webdesign.
Now working with media-queries I've made myself these code-snippet for the write the browser-width to the console while resizing it.
(function () {
window.addEventListener('resize', function() {
console.log('Current width : %s', document.body.clientWidth);
});
})();
What I'm trying to do is getting information where to set my breakpoints.
The JavaScript works fine. But I'm not sure if I'm asking the optimal property.
Therefore question to the more experienced devs:
What property of which object should I query for solving the task finding breakpoints?