Posts by Regis • 1 point
1 post
-
0
votes1
answer91
viewsA: How to get real-time function values in javascript?
If you want to use pure Javascript only: let media; window.addEventListener('resize', function() { media = matchMedia('(max-width: 576px)').matches; show.innerHTML = media;//'show' é qualquer…