Answers for "check string for a number javascript"

13

javascript check if string is number

if (typeof myVar === 'string'){
    //I am indeed a string
}
Posted by: Guest on July-23-2019
1

js string have number js

var hasNumber = /\d/;   
      hasNumber.test("ABC33SDF");  //true
      hasNumber.test("ABCSDF");  //false
Posted by: Guest on December-10-2020

Code answers related to "check string for a number javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language