Object Constructor Problem


#1



How is this object constructor wrong, please?


var spencer2 = new Object;
spencer2.age = 22;
spencer2.country = "United States";


#2

You are missing the parentheses at the end


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.