JavaScript Phone Number Validation

A hyphen-separated United States phone number can be validated in JavaScript using the following regular expression:
(/^[2-9]\d{2}-\d{3}-\d{4}$/.test('222-333-4444');
Broken down into sections:
^[2-9] The phone number string must begin (^) with a digit between 2 and 9. This is the start of the area code. An area code cannot begin with 0 or 1.
\d{2} The first digit of [...]

JavaScript pop Method: Removing From an Array End

The JavaScript pop method can be used to remove elements from a JavaScript array.
//Removes 4 from the array
var aryTest = [1,2,3,4];
aryTest.pop();