TRINITY INTERNATIONAL SS & COLLEGE
KATHMANDU, NEPAL
2024
Lab-report on Java Script
(COMPUTER SCIENCE)
SUBMITTED BY: SUBMITTED TO:
NAME: Aditya Pun
GRADE: 12
STUDENT ID NUMBER: 29057
TRINITY INTERNATIONAL SS & COLLEGE
Lab report #6
( Java Script )
Lab date:-
Submission date:-
Internal Signature External Signature
Acknowledgement
I would like to extend my sincere appreciation to my instructor for their
invaluable guidance and steadfast support during the duration of this Java
Script lab. Their insightful feedback and patient assistance have been
instrumental in steering me through the complexities of the tasks at hand,
ultimately contributing to the successful completion of this report.
Additionally, I wish to express my gratitude to my friends and classmates for
fostering a collaborative and enriching learning environment. The
camaraderie we shared, coupled with our collective discussions and
exchanges of ideas, played a pivotal role in shaping the outcomes of this lab
report. Together, their support and camaraderie have made this learning
experience not only enjoyable but also highly rewarding.
Objectives
Fundamentals of JavaScript – Learn the core concepts of JavaScript,
including variables, data types, and operators.
Functions & Modular Programming – Understand how to define
and use functions to create reusable and maintainable code.
Control Structures & Logic Flow – Practice decision-making
structures such as if-else, if-else-if, and switch-case to control program
flow.
Loops & Iteration – Implement for, while, and do-while loops to
perform repetitive tasks efficiently.
Event Handling in JavaScript – Explore event-driven programming
by handling user interactions such as clicks, keypresses, and form
submissions.
Form Validation with JQuery – Apply JQuery to enhance user input
validation, ensuring correct data entry and improving user experience.
Hands-on Mini-Project – Develop an interactive web form with
JavaScript and JQuery, implementing validation, dynamic behavior,
and event-driven actions.
Table of contents
Acknowledgement...........................................................................................3
Objectives........................................................................................................4
Table of contents.............................................................................................5
Theory part......................................................................................................6
Codes and outputs............................................................................................7
Conclusion.......................................................................................................8
Bibliography....................................................................................................9
Theory part
JavaScript is a programming language used to enhance web interactivity,
responsiveness, and dynamic content. It runs in web browsers and supports
libraries like JQuery, React, and Angular. Primarily a client-side language,
JavaScript can also run on servers using Node.js. It includes control
structures such as if-else, if-else-if, and switch-case for decision-making,
while loops like for, while, and do-while handle repetitive tasks efficiently.
Functions improve code organization and reusability, making development
more efficient.
Event handling allows JavaScript to respond to user actions like clicks,
keypresses, and form submissions. Combined with JQuery, JavaScript
simplifies form validation, ensuring correct user input before submission.
This enhances security, improves data accuracy, and prevents errors.
Through this project, students will gain practical experience in implementing
control structures, writing functions, handling events, and validating forms,
reinforcing essential JavaScript skills for modern web development.
Conclusion
Through this Java Script work, students have acquired practical experience
in designing, implementing, and managing Java Script. By utilizing function
and control structures if-else, if-else-if, switch-case, for, while, do while loop
event handling, they have built a solid foundation in Java Script.
Furthermore, the hands-on exercises have strengthened their problem-
solving abilities and equipped them for real-world applications in Java
Script. This lab work serves as a fundamental step toward mastering Java
Script concepts and applying them in professional settings across various
industries.
Bibliography
1. Internet
2. Books
i. Computer Science-II, Buddha Publication Pvt. Ltd.
3. Teacher