From 4f28dfb8a27fa1b36bec9000a9a74120c5d579c2 Mon Sep 17 00:00:00 2001 From: Facundo Maldonado Date: Wed, 10 May 2017 12:19:28 -0300 Subject: [PATCH 1/2] Topic 5 - Exercises 1 and 2. --- 05-UI-ReactJS/Topic5.html | 147 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 05-UI-ReactJS/Topic5.html diff --git a/05-UI-ReactJS/Topic5.html b/05-UI-ReactJS/Topic5.html new file mode 100644 index 000000000..8e121a58d --- /dev/null +++ b/05-UI-ReactJS/Topic5.html @@ -0,0 +1,147 @@ + + + + + + + Topic 5 + + + + + + +
+ +
+ + + + From 0cc395880786b3301935b0c4e92ed4169e245a82 Mon Sep 17 00:00:00 2001 From: Facundo Maldonado Date: Mon, 15 May 2017 17:25:50 -0300 Subject: [PATCH 2/2] Topic 5 Done --- 05-UI-ReactJS/Topic5.html | 187 +++++++++++++++++++++++++++----------- 1 file changed, 132 insertions(+), 55 deletions(-) diff --git a/05-UI-ReactJS/Topic5.html b/05-UI-ReactJS/Topic5.html index 8e121a58d..ebf167df1 100644 --- a/05-UI-ReactJS/Topic5.html +++ b/05-UI-ReactJS/Topic5.html @@ -21,76 +21,63 @@ this.title = title; this.year = year; this.duration = duration; - this.cast = []; } - play(){ - console.log("Movie is now playing") - } - pause(){ - console.log("Movie has been paused") - } - resume(){ - console.log("Movie has been resumed") - } - addCast(actor){ - if (Array.isArray(actor)) { - for (let i = 0; i < actor.length; i++) { - this.cast.push(actor[i].name); - } - } - else{ - this.cast.push(actor) - } - } - } - let FastAndFurious = new movie("Fast and Furious 8", "2017", "02:15"); - - console.log(FastAndFurious); - class Actor { - constructor(name, age){ - this.name = name; - this.age = age; - } } -