How to open url in new tab in JavaScript

URL
By Jad Joubran · 
Last updated Apr 28, 2018
window.open("https://example.com");
Window.open on MDN