Answers for "how to check variable is string or not in javascript"

16

if string javascript

if (typeof myVar === 'string') { /* code */ };
Posted by: Guest on July-23-2020
12

check data type in javascript

typeof("string"); //string
typeof(123); //number
Posted by: Guest on July-25-2020

Code answers related to "how to check variable is string or not in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language