Creating an array using the result of a match. The result of a match between a regular expression and a string can create a JavaScript array. This array has properties and elements which provide information about the match. Such an array is returned by RegExp.exec, String.match, and String.replace.
The justices are nominated by the President of the United States and appointed after confirmation by the United States Senate. Justices of the Supreme Court have life tenure and receive a salary which is set at $255,500 per year for the chief justice and at $244,400 per year for each associate justice as of 2014.
Appointment of federal judges is a two-step process involving both the Executive and Legislative Branches of government. The President (Executive Branch) nominates someone for a vacancy on the bench, and the Senate (Legislative Branch) approves or rejects the nomination to complete the appointment. The executive branch (specifically the President) appoints federal judges subject to confirmation by the Senate.