asked 147k views
3 votes
What would a match() property that passed the expression /^[0-9]/ check for?

all strings that do not contain numerals
all strings that contain only numerals
all numeric values
all strings that contain numerals but start with ^
a string that contains only one numeral between 0 and 9

asked
User Kerlene
by
8.0k points

1 Answer

6 votes

The match() property that passed the expression /^[0-9]/ would check for a string that starts with a numeral between 0 and 9.

answered
User MGH
by
8.5k points