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.
Though no specific provision exists in the Constitution for appointing the Chief Justice, who, as a result, is appointed like the other judges conventionally, the outgoing CJI recommends the name of the senior-most judge (i.e. by date of appointment to the Supreme Court) for appointment by the President, as his successor.