Hello!
I was wondering to check if my variable was a number, so i was going to use the typeof() function,
so would it be used like this:
typeof(variable) == “number”
or
typeof(varaible) == “int”
Hello!
I was wondering to check if my variable was a number, so i was going to use the typeof() function,
so would it be used like this:
typeof(variable) == “number”
or
typeof(varaible) == “int”
The data type for integers, floats, etc is always number
, so the first one