Typeof() == "number" or 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”

1 Like

The data type for integers, floats, etc is always number, so the first one

3 Likes