The number from a string in javascript can be extracted into an array of numbers by using the match method.