obtener ancho de pantalla javascript 1

obtener ancho de pantalla javascript

var ancho = window.innerWidth

Here is what the above code is Doing:
1. We’re creating a variable called ancho and assigning it the value of the window’s innerWidth property.
2. We’re creating a variable called alto and assigning it the value of the window’s innerHeight property.
3. We’re creating a variable called ancho and assigning it the value of the window’s innerWidth property.

Similar Posts