Skip to content

Commit 98ccfa4

Browse files
committed
Section 19: An Intro to OOP
1 parent 64147ca commit 98ccfa4

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// ******************************
2+
// An Intro to OOP ******************************
3+
4+
console.log('An Intro to OOP')
5+
console.log('\n')
6+
7+
// Example 1
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>JavaScript</title>
8+
</head>
9+
<body>
10+
<script src="app.js"></script>
11+
</body>
12+
</html>

19-Prototypes-Classes-And-The-New-Operator/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ console.log(String.prototype)
1414

1515
I could actually define my own type of an object and set its prototype to the array prototype. And i would have access to those array methods in my whatever object, my version of the array.
1616

17-
Prototypes are lik e a template object. They are objects, they contain typically a bunch of methods, and then we can create multiple objects that share the same prototype so that they all have access to the same methods without having to have their own copy.
17+
Prototypes are lik e a template object. They are objects, they contain typically a bunch of methods, and then we can create multiple objects that share the same prototype so that they all have access to the same methods without having to have their own copy.
18+
19+
## 2. An Intro to OOP
20+
21+
Basic object oriented concepts in JavaScript. Things like factory functions, constructor functions, the new class keywords, constructores in a class, the new keyword, there's super, inheritance.
22+
23+
But it all has to do with this one central idea, which is organizing our code, designing and structuring our applications by breaking things up into distinct patterns of objects.

0 commit comments

Comments
 (0)