How to pause video in JavaScript

DOM
By Jad Joubran · 
Last updated Mar 12, 2018
<video id="video" controls>
  <source src="movie.mp4" type="video/mp4">
</video>
const video = document.querySelector("#video");

video.pause();