JavaScript is a programming language that makes websites interactive and dynamic. While HTML provides structure and CSS provides style, JavaScript adds behavior – it makes web pages respond to user actions.
JavaScript is used for everything from form validation, animations, interactive maps, to games and entire web applications. It's one of the most popular programming languages in the world.
JavaScript was created in 1995 by Brendan Eich in just 10 days! It was originally called "Mocha" and then "LiveScript" before becoming JavaScript.
let or const.
Create a simple interactive webpage:
1. Create an HTML page with a button and a paragraph.
2. Use JavaScript to change the paragraph's text when the button is clicked.
Create a "Color Changer" webpage:
Include:
1. A heading with some text.
2. Three buttons: "Red", "Green", "Blue".
3. JavaScript to change the heading's color when each button is clicked.
Bonus: Add a button that changes the background color.
Interactivity is a gift that makes technology engaging.
The Qur'an says: "And cooperate in righteousness and piety..." (5:2)
When you create interactive web pages, you are making it easier for people
to learn and engage with information. Use this skill to benefit others.
JavaScript adds interactivity to web pages. It uses variables, functions, and events to respond to user actions. JavaScript works with HTML and CSS to create dynamic and engaging websites. It is an essential skill for modern web development.
Object-Oriented Programming (OOP) is a programming paradigm that organizes code around objects rather than functions and logic. Objects are like real-world things – they have properties (data) and methods (actions).
Think of a car as an object:
OOP was first developed in the 1960s with the Simula language. It became popular with C++ in the 1980s and Java in the 1990s.
Think of a real-world object and identify its properties and methods.
Example: A Student
Properties: name, grade, subjects
Methods: study(), takeExam(), getAverage()
What other objects can you think of?
A Book? A Phone? A Teacher?
Design a class in Python or JavaScript:
Create a "Book" class with:
Properties: title, author, pages, isRead.
Methods: read() (marks as read), getSummary() (returns a summary).
Then create:
1. An instance of the Book class.
2. Call the methods to test them.
Share your code with a partner.
Allah has created everything in the universe with order and purpose.
The Qur'an says: "And everything with Him is by measure." (13:8)
OOP helps us model the world in code. It teaches us to
organize our thinking in a structured way. This is a skill
that helps us in all areas of life.
Object-Oriented Programming organizes code around objects. Key concepts include classes (blueprints), objects (instances), encapsulation (data + methods), inheritance (child classes), and polymorphism (same method, different behavior). OOP is a powerful way to write organized, reusable code.
A database is an organized collection of data that can be easily accessed, managed, and updated. Databases are used everywhere – from social media to banking to online shopping.
Think of a database like a digital filing cabinet where information is stored in an organized way.
The first database systems were developed in the 1960s. The relational database model, introduced by Edgar Codd in 1970, revolutionized how data is stored and accessed.
Relational databases organize data into tables with rows and columns. Each table represents a type of data.
SQL (Structured Query Language) is used to create, read, update, and delete data in databases.
Think about a library database:
Table: Books
Columns: BookID (Primary Key), Title, Author, Year, Available
Write SQL to:
1. Get all books.
2. Get books by a specific author.
3. Add a new book.
4. Mark a book as borrowed.
You're a database manager!
Design a database for a school:
Create tables for:
1. Students (StudentID, Name, Age, Class, Email)
2. Teachers (TeacherID, Name, Subject, Email)
3. Courses (CourseID, Name, TeacherID)
Write SQL to:
1. Get all students in Class 8A.
2. Get all teachers who teach Math.
3. Add a new student.
Share your database design with a partner.
Allah has created the universe with order and organization.
The Qur'an says: "And everything with Him is by measure." (13:8)
Databases help us organize information in a structured way.
This reflects the wisdom and order in Allah's creation.
When we organize data, we are following this divine principle.
Databases organize data in tables with rows and columns. SQL is the language used to manage data. Key commands are SELECT, INSERT, UPDATE, and DELETE. Databases are essential for storing and managing information in modern applications.
In previous classes, you learned the basics of networks. Now let's go deeper into how the internet actually works – the protocols and systems that make global communication possible.
The TCP/IP protocol suite was developed by Vint Cerf and Bob Kahn in the 1970s. They are often called the "fathers of the internet."
A student named Aisha wanted to visit a website about animals.
Her computer (the client) sent a request.
The request was broken into packets. Each packet had:
• The source IP (Aisha's computer).
• The destination IP (the server's address).
• A sequence number (to reassemble the packets).
The packets traveled through many routers across the internet.
When they reached the server, the server processed the request and sent back
the webpage, also in packets.
Aisha's computer reassembled the packets and displayed the website.
All of this happened in less than a second!
The lesson: The internet is a remarkable system
that works through cooperation and precision.
Trace the path of a packet:
1. Use the "tracert" command on Windows or "traceroute" on Mac/Linux
to see the path from your computer to a website.
2. Write down the number of hops (routers) your data travels through.
3. Note the IP addresses of the routers.
What do you notice about the path?
(Ask an adult for help if needed.)
The internet connects people across the world. The Qur'an says:
"O mankind, indeed We have created you from male and female and made you peoples
and tribes that you may know one another..." (49:13)
The internet is a powerful tool for connection and understanding.
Use it to learn, share, and build bridges between people.
TCP/IP is the foundation of the internet. TCP ensures data is sent correctly. IP handles addressing and routing. DNS translates domain names to IP addresses. Routing forwards packets across networks. Understanding these concepts helps you appreciate the complexity and beauty of the internet.
In earlier classes, you learned about staying safe online. Now let's go deeper into cybersecurity – the technologies and practices that protect systems from attacks.
The first known ransomware attack occurred in 1989. Called the "AIDS Trojan," it was distributed on floppy disks and demanded $189 to unlock files.
Why is encryption important?
When you send a message, make a purchase, or log into a website,
your data travels across the internet. Without encryption,
anyone could intercept and read your data.
Encryption protects your privacy!
Always look for HTTPS in the address bar
and the padlock icon before entering
any personal information.
Research a cybersecurity topic:
Choose one:
1. The history of encryption
2. How HTTPS works
3. Famous cyber attacks
4. Careers in cybersecurity
Write a short summary of what you learned.
Share it with your class.
Allah has given us the ability to protect ourselves and others.
The Qur'an says: "And do not throw yourselves into destruction..." (2:195)
Cybersecurity is a way to protect ourselves and others in the
digital world. By learning about cybersecurity, we can prevent harm
and protect people's privacy. This is a noble pursuit
that aligns with Islamic values.
Cybersecurity protects systems from attacks. Common attacks include phishing, malware, DDoS, and MITM. Encryption protects data using symmetric (same key) or asymmetric (public/private keys) methods. HTTPS encrypts web traffic. Cybersecurity is essential for protecting privacy and preventing harm.
Technology is constantly evolving. Some of the most exciting emerging technologies are Artificial Intelligence (AI), Cloud Computing, and the Internet of Things (IoT). Let's explore what they are and how they will shape the future.
The term "Artificial Intelligence" was coined by John McCarthy in 1956 at the Dartmouth Conference. The field has grown tremendously since then!
Imagine a city where everything is connected:
• Traffic lights that adjust based on real-time traffic.
• Street lights that turn on only when someone is nearby.
• Waste bins that alert when they need to be emptied.
• Homes that adjust temperature and lighting automatically.
• Hospitals that monitor patients remotely.
This is the vision of a smart city powered by IoT and AI.
It's not science fiction – it's happening right now!
The lesson: Technology can make our lives easier, safer,
and more sustainable. The future is full of possibilities.
Imagine the future of technology:
1. What problem would you like technology to solve?
2. How would you use AI to help people?
3. What ethical guidelines should technology follow?
Write a short essay about your vision for the future of technology.
Share it with your class.
Allah has given us the ability to create and innovate.
The Qur'an says: "And He taught man that which he knew not." (96:5)
Emerging technologies are tools that can be used for good or for harm.
It is our responsibility to ensure they are used for the benefit
of all humanity. Let us be leaders in using technology for good.
Emerging technologies include Artificial Intelligence (AI), Cloud Computing, and the Internet of Things (IoT). AI creates intelligent machines. Cloud computing delivers services over the internet. IoT connects physical objects to the internet. As Muslims, we must ensure that technology is used with good intentions, justice, responsibility, and for the benefit of all.
You've explored JavaScript, Object-Oriented Programming, databases and SQL, advanced networking, cybersecurity and encryption, and emerging technologies. You are now equipped with advanced computer science skills that will serve you well in high school and beyond! May Allah bless your learning and help you use technology for good!