Answers for "how to check whether a var is string or number using javascript"

13

javascript is variable number or string

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

Code answers related to "how to check whether a var is string or number using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language