3 var values = ["hi", "hi", "hi", null, 5, 5.1, true, undefined, /foo/, typeofTest, [], {}], types = [];
4 for (var i = 0; i < values.length; i++)
5 types[i] = typeof values[i];
6 return types.toString();
8 assertEq(typeofTest(), "string,string,string,object,number,number,boolean,undefined,object,function,object,object");