Explica este c贸digo JavaScript
Dificultad: Intermedio
<!--HTML-->
<button id="vibrar">Vibrar</button>
//JS
const v = document.querySelector("#vibrar");
const salida = v.addEventListener('click', () => {
window.navigator.vibrate(1000);
})
A. Har谩 que el dispositivo vibre por 1s sin dar click al bot贸n.
B. Har谩 que el dispositivo vibre por 1s despu茅s de presionar el bot贸n.
C. undefined
D. La API Vibration
no existe en JS.
Respuesta en el primer comentario.