Search
throw
In the code given below, the user object contains data that is parsed from a JSON string. Check if the user object contains a property with the key email. If it doesn't, throw an error "Email is not present" using new Error().
user
email
new Error()