parseInt("11", 16); // returns 17If the variable cannot be converted to a string, the parseInt() function returns NaN. However it is possible to convert compound types such as arrays and objects to numbers, provided that their toString methods return numeric strings:function Foo(arg) {