Answers for "how to check if variable is string in hs"

6

js check if variable is string

if (typeof myVar === 'integer'){
    //I am indeed an integer
}

if (typeof myVar === 'boolean'){
    //I am indeed a boolean
}
Posted by: Guest on March-19-2020
0

if variable is string javascript

var booleanValue = true; 
var numericalValue = 354;
var stringValue = "This is a String";
var stringObject = new
Posted by: Guest on November-02-2020

Code answers related to "how to check if variable is string in hs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language