In my JavaScript code, I am facing an issue with splitting a string. Here is the string that I need to split: var str = 'Lenovo Essential G500s (59-388254) Laptop (3rd Gen Ci5/ 8GB/ 1TB/ DOS/ 2GB Graph) (Free carry bag) (Black)';
My goal is to retrieve only 'Lenovo Essential G500s (59-388254) Laptop' which means I want to split the string after the second '(' character.
Although I have tried using the .split() function, I have been unsuccessful in specifying the desired position. Any assistance would be greatly appreciated!