Answers for "javascript how to tell if a datatype is string"

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 "javascript how to tell if a datatype is string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language