Skip to content

Commit 96e7f02

Browse files
authored
Update README.md
1 parent 79039fd commit 96e7f02

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
# POO_JavaScript
2-
Hello all,
3-
I present to you a mini project of Object-Oriented JavaScript Representing a Lecture and a Schedule of Lectures.
1+
# Explanation of JavaScript Functions in Lecture Schedule Management System
2+
This JavaScript code is an example demonstrating the use of prototypes and constructors to create objects and their associated methods.
3+
4+
# Features:
5+
1. **Lecture Constructor Function :**
6+
This function serves as a constructor to create objects of type "Lecture". It takes two parameters: the conference name and the teacher's name, and then assigns them to the name and teacher properties, respectively.
7+
2. **Lecture Prototype Method :**
8+
This method is added to the prototype of the Lecture object. It generates a string describing the conference based on its name and the teacher.
9+
3. **Schedule Constructor Function :**
10+
This function serves as a constructor to create objects of type "Schedule". It takes an array of objects of type "Lecture" as a parameter and assigns them to the lectures property.
11+
4. **Schedule Prototype Method :**
12+
This method is added to the prototype of the Schedule object. It iterates through the array of conferences and calls the display() method for each conference, then concatenates the results into a single string.
13+
5. **Creating Schedule Object :**
14+
A new object of type "Schedule" is created with a pre-filled array of conferences. Each conference is an object of type "Lecture" with its corresponding name and teacher.
15+
6. **Displaying Schedule Information :**
16+
Finally, the schedule information is displayed in a dialog box by calling the display() method of the mySchedule object, which iterates through all conferences and displays their information using the display() method of each Lecture object.
17+
18+
# Usage
19+
* Clone the Project
20+
* Navigate to the Project Directory
21+
* Open the index.html File in a Browser
22+
23+
# Author
24+
* Developed by Mouhamed Fall
25+
* Email : mouhamedfall056@gmail.com
26+
* Github : [@fallcoder](https://github.com/fallcoder)
427

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy