<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
function User (name,email){
this.name = name;
this.email = email;
}
User.prototype.info = function(){
console.log(`hi,I'm ${this.name}`)
}
const codecasts = new User('codecasts','ie@codecasts.com')
User.prototype.info = function(){
console.log(`hi,I'm ${this.name} ,my email is ${this.email}`)
}
User.prototype.decription = function(){
console.log(`I'm a user of codecasts.com`)
}
</script>
</body>
</html>