JS Strict Data Types is JavaScript library that attempts to facilitate strict data types in JavaScript.
Below are the data types that are currently supported.
You can convert data types from one data type to another using the ConvertDataType method. The method accesses two parameters, the first is the variable that you want to convert and the second is a string value for the data type that you want to convert the variable to (Int for Integer, Float for Float, String for String and Boolean for Boolean). Below is an example of converting a variable from an Integer to a Float.
MyVar1 = new Int(MyVar1); MyVar1 = ConvertDataType(MyVar1, "Float"); MyVar1.Set(253.345345); alert(MyVar1.value);
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket
Recent comments
4 weeks 1 day ago
5 weeks 3 days ago
6 weeks 4 days ago
6 weeks 5 days ago
7 weeks 4 hours ago
7 weeks 2 days ago
7 weeks 3 days ago
9 weeks 5 days ago
10 weeks 21 hours ago
10 weeks 23 hours ago