For this Question: A typical Google search url looks like <b>https://www.google.com/search?q=newtonschool</b>, where the user input <b>newtonschool</b> is passed as variable via the query parameter <b>q=</b>. 

You have been provided employee details. Complete the function <b>getEmployeeDetails</b> as shown. Given a URL having <b>id</b>, <b>name</b> and <b>designation</b> of employee, access query parameters and return the statement with the employee details in the following form

Employee <b>id</b> named <b>name</b> works as <b>designation</b>URL containing <b>id</b>, <b>name</b> and <b>designation</b> of employee in form of query parameters.Return the employee details in specified formatSample Input : 
www.newtonschool.co/search?id=1&name=John&designation=engineer

Sample output :
Employee 1 named John works as engineer.
, I have written this Solution Code: function getEmployeeDetails (url) {
  var searchParams = url.split('?')[1]
  const params = new URLSearchParams(searchParams);
  const id = params.get("id");
  const name = params.get("name");
  const designation = params.get("designation");
  const details = `Employee ${id} named ${name} works as ${designation}`
  return details;
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?