Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if string contains at least one number javascript

// Check if string contains at least one number
/d/.test("Hello123World!"); // true
 
PREVIOUS NEXT
Tagged: #check #string #number #javascript
ADD COMMENT
Topic
Name
7+9 =