Thanks Johan for clarifying.
What I understand now is that when I choose a data type for a variable what I need to be sure of is that when I assign a value to that variable either by way of scripting or initializing etc. I need to be sure that the value I provide WILL CAST to the corresponding Java data type. I don’t necessarily need to be sure that the value is in itself that datatype natively in JS.
So for example, I could create a variable with the type of integer and assign it the value 1.56, b/c that will cast to 1, an integer. But if I assign the value “a” to a variable of type integer then my relationships or other Servoy features dependent on that variable being an integer will break. And in this case, since JS is dynamically typed, and the editor/interpreter has no way of alerting me that the value I am assigning to an integer variable is not actually an integer (or rather won’t cast to an integer), I will not be warned. Correct?
I think this is probably an important clarification for all.
Again, thanks very much for all the replies on this thread.