0% found this document useful (0 votes)
8 views20 pages

JavaScript Lab Report for Web Technology

This lab report on JavaScript outlines its objectives, which include making web pages dynamic and interactive, enhancing user experience, and supporting asynchronous operations. It highlights JavaScript's role in manipulating the Document Object Model (DOM) and its evolution into a versatile language used in various applications beyond web browsers. The report concludes that JavaScript is essential for modern web development, contributing to responsive and user-friendly online experiences.

Uploaded by

ashimkhanal015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views20 pages

JavaScript Lab Report for Web Technology

This lab report on JavaScript outlines its objectives, which include making web pages dynamic and interactive, enhancing user experience, and supporting asynchronous operations. It highlights JavaScript's role in manipulating the Document Object Model (DOM) and its evolution into a versatile language used in various applications beyond web browsers. The report concludes that JavaScript is essential for modern web development, contributing to responsive and user-friendly online experiences.

Uploaded by

ashimkhanal015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

TRINITY INTERNATIONAL SS & COLLEGE

KATHMANDU, NEPAL
2025

Lab-report on Web Technology

(COMPUTER SCIENCE)

SUBMITTED BY: SUBMITTED TO:

NAME: Sarvesh Shankhadev Kapil Dhungel


GRADE: XII (DA2)

STUDENT ID NUMBER: - SC24-0631

REGISTRATION NUMBER: -

STUDENT’S EMAIL: -
TRINITY INTERNATIONAL SS & COLLEGE

Lab report #1
JS (Java Script)

Lab date: -
Submission date: -

Internal signature External Signature

Objectives: -
The main objectives of JavaScript are to make web pages dynamic, interactive, and
user-friendly. It aims to enhance user experience by validating input, responding to
events, and enabling real-time interactions on the client side. JavaScript allows
developers to manipulate HTML and CSS through the DOM, create animations, and
manage multimedia elements. It also supports asynchronous operations for smooth
data handling and forms the core foundation for modern web development, including
advanced frameworks and applications.

Table of contents
Theory part: -

JavaScript is a high-level, interpreted programming language widely used to bring interactivity and
dynamic behavior to websites. It works on the client side, meaning the browser executes the code
directly without needing a server. Because of its simple syntax and flexibility, JavaScript is considered
one of the core technologies of the web, alongside HTML and CSS. Its ability to respond instantly to
user actions makes modern websites more engaging and functional.

A key feature of JavaScript is its ability to manipulate the Document Object Model (DOM), which
represents the structure of a web page. With DOM manipulation, JavaScript can change text, images,
styles, and even entire sections of the page in real time. It also supports event handling, allowing
developers to control what happens when users click buttons, move the mouse, or type in forms.
These capabilities help create responsive and interactive interfaces that improve the overall user
experience.

JavaScript has evolved significantly, now supporting features like asynchronous programming, APIs,
and modular development. Tools such as promises, async/await, and fetch allow smooth
communication with servers without reloading the page. Additionally, modern JavaScript frameworks
and libraries—such as React, Angular, and Vue—enable developers to build large-scale, complex
web applications efficiently. Because of its versatility, JavaScript is also used beyond web browsers,
including in mobile apps, desktop software, and server-side development with [Link].
Works with screenshot: -

1. Area and Circumference


2. Square root
3. Greatest number
4. Odd or Even
5. Eligible or not
6. Switch Case
7. Factorial
8. Multiplication Table
9. Reverse String
10. Reverse Order
11. Print the patterns
12. Form Validation
13. Hide
14. Alert
Conclusion: -
In conclusion, JavaScript plays a vital role in modern web development by enabling
websites to be interactive, responsive, and user-friendly. Its ability to manipulate web
page elements, handle user events, and support asynchronous communication
makes it essential for creating smooth and dynamic online experiences. With
continuous advancements and the rise of powerful frameworks, JavaScript has
expanded far beyond the browser, proving itself as a versatile language used in a
wide range of applications. Overall, JavaScript remains an indispensable tool for
developers and an important component of today’s technological world.

You might also like