Swift is type-save language. By type-save that mean you can not pass an integer number to string. For example
There are 6 primitive types and object type in javascript. Primitive types are immutable while structural type is mutable.