Javascript to change to night mode

What javascript code will toggle light and dark mode