const url = 'http://localhost/console/addproduct.php?page=5&sort=desc'; const urlObj = new URL(url); urlObj.search = ''; const result = urlObj.toString(); console.log(result);
Copyright © 2025 datapearls.org