How to open url in new tab in JavaScript

URL
Last updated Apr 28, 2018
window.open("https://example.com");