Answers for "how do you check to see if a data type is a string in javascript"

5

js test if string

if (typeof string === 'string') { /* code */ };
Posted by: Guest on April-18-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 do you check to see if a data type is a string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language