How to play video in JavaScript

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

video.play();