
Factory functions create objects without the new keyword. They're more flexible than classes and enable private state through closures.
createUser(name, email) factory functionname, email, and methodsgetInfo() method that returns a formatted stringupdateEmail(newEmail) methodgetInfo()Submit your code to see test results