Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions Retos/sesion3-reto1/Reto1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
class user{
constructor(userInformation,accountInformation){
this.userInformation=userInformation,
this.accountInformation=accountInformation
}
createProfile(name,image) {
return {'name': name,'image': image}
}
deleteUser(){
this = null
delete this
}
}
class userInformation{
constructor(name,email,password,phoneNumber){
this.name=name,
this.email=email,
this.password=password,
this.phoneNumber=phoneNumber
}
editProperty(property,newValue){
this[property] = newValue
}
}
class accountInformation{
constructor(creditCard,membership,language){
this.creditCard=creditCard,
this.membership=membership,
this.language=language
}
editProperty(property,newValue){
this[property] = newValue
}
}

class movie{
constructor(title, details,storyLine,description,tags){
this.title = title,
this.details=details,
this.storyLine=storyLine,
this.description=description,
this.tags=tags
}
editProperty(property,newValue){
this[property] = newValue
}
}
class series{
constructor(title, details,storyLine,seasons,tags){
this.title = title,
this.details=details,
this.storyLine=storyLine,
this.seasons=seasons
}
}
class details{
constructor(cast,director,genres,writers,motionPictureRating,awards,createdBy){
this.cast=cast,
this.director=director||createdBy,
this.genres=genres,
this.writers=writers,
this.motionPictureRating=motionPictureRating,
this.awards=awards
}
}