DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if string only contains integer digits numbers javascript
let val = '1234567890' let isnum = /^d+$/.test(val); if (isnum) { // val is a number }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#check
#string
#integer
#digits
#numbers
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+6 =
Submit