When writing an arrow function with a single line in the function block, the block will run 4 times if curly brackets are missing.
e.g:
web.init();
web.open(‘website 1 url’);
web.execute(()=> {
window.open(‘website 2 url’)
});
In this case- opens website once
web.init();
web.open(‘website 1 url"’);
web.execute(()=> window.open(‘website 2 url’));
In this case- opens four tabs of website 2
btw - couldn’t write real url since this forum doesn’t allow new users to post more than 2 links in a thread