class link{ constructor(url){ this.url= url; } show(){ var win=window.open(this.url, '_blank'); win.focus(); } }var firstlink = new link('https://git.xaloc.space') var secondlink = new link('https://fsf.org') var thirdlink = new link('https://fedi.cat')