From 86b031ba9fd652e15a4e1774de26db938dc5942a Mon Sep 17 00:00:00 2001 From: Kishan-kumar2020 <67338623+Kishan-kumar2020@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:15:53 +0530 Subject: [PATCH] Create index.html --- index.html | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..8ad2924 --- /dev/null +++ b/index.html @@ -0,0 +1,125 @@ + + + + + + + + +lab-javascript-oops-blog + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

lab-javascript-oops-blog

+ + +

Image description

+ +

ProGrad Lab | JS BLOG

+ +

We have learned Object-oriented programming and how class and inheritance work in JavaScript. Now lets work with our Viking friends, applying all of the concepts we have just learned.

+ +

What should you do

+
Fork this repo
+Clone this repo
+Practice OOPs Features
+
+ +

How To Submit

+
Upon completion, run the following commands:
+
+git add .
+git commit -m "ProGrad ID"
+git push origin master
+
+And finally, create a pull request so your ProGrad Mentor (PM) can review your work.
+
+ +

Instructions

+

We must write the correct code in the script.js file. In this file you will find the following starter code:

+
class Blog{
+
+}
+
+ +

In this case, it says that Blog class should receive 2 arguments (title & detail), so we have to write the correct code. Let’s make the Blog class receive two arguments:

+
class Blog{
+constuctor(title,detail){}
+
+}
+
+

Progression 1: WRITE UP

+

Modify the Blog class and add two methods to it: addTitle(), and addDescription().

+ +

class

+ + +

addTitle()

+ + +

addDescription()

+ + +

Image description

+ +

Progression 2: SHOW EM UP

+ +

Setup EventListeners, so that we can display the entire blog for the users +Image description

+ +

Happy Coding ProGrads❤️

+ + + + +
+ + + +