uncaught typeerror object is not a constructor?
There was an attempt to use an object or a variable as a constructor, but that object or variable is not a constructor. ... The following JavaScript standard built-in objects are not a constructor: Math , JSON , Symbol , Reflect , Intl , Atomics . Generator functions cannot be used as constructors either.