Answers for "getting type of variable in javascript"

22

js get type of variable

typeof variable;
Posted by: Guest on May-18-2022
-1

check the type of a variable in js

if(typeof variable == 'object'){
  //
}
Posted by: Guest on February-06-2022

Code answers related to "getting type of variable in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language