SlideShare a Scribd company logo
1 of 31
COMPUTER NETWORK
A Computer network is an interconnection of geographically distributed
multiple computers in such a way that meaningful transmission and exchange of
information become possible .
Advantages
of
computer network
 : Hardware such as printers can be shared by all the computers on the
network.
 : Some software and files such as databases can be shared by different
users.
 : An internet connection can be shared.
:-
1 LAN -Local Area Network.
2 WAN -Wide Area Network.
3 MAN -Metropolitan Area
4 PAN -Personal Area Network.
WRITE A PROGRAM IN JAVA SCRIPT TO FIND THE SUM OF
TWO NUMBERS USING VARIABLE.
<HTML>
<BODY>
<SCRIPT LANGUAGE = “JAVA SCRIPT”>
VAR X = 50;
VAR Y = 50;
VAR Z=X+Y;
DOCUMENT. WRITE( “ <B>SUM OF VALUES: “+Z+”);
</SCRIPT>
</BODY>
</HTML>
OUTPUT :
SUM OF VALUES: 100.
AN OPERATOR IS CAPABLE OF MANIPULATING A CERTAIN
VALUE OR OPERAND. OPERATORS ARE USED TO PERFORM
SPECIFIC MATHEMATICAL AND LOGICAL COMPUTATIONS
ON OPERANDS.
 . ARITHMETIC OPERATORS.
 . COMPARISON OPERATORS.
 . LOGICAL OPERATORS.
 . STRING OPERATORS.
It designed to allow you to create scripts that can decide which lines of
code are evaluated, or how many times to evaluate them. There are two
different types of control structure/statements:
 1conditional structures .
 2 loop structures .
VARIOUS CONDITIONAL STRUCTURES /STATEMENTS
ARE:-
 If statement.
 If else statement.
 If else if statement.
 Switch statement
IF STATEMENT
Q1 Write a program inJavaScript to check a person is eligible for vote?
<Html>
<Body>
<Script>
Var age = 21;
If(age>18)
{document.Write(“<b> Person is eligible for vote </b>);}
</Script>
</Body>
</Html>.
An loop statement , or iteration ,repeatedly executes a
statement known as the loop body , until the controlling
expression is false(0). The control expression must have a
scalar type . The while statement evaluates the control
expression before executing the loop.
 For loop.
 While loop.
 Do while loop.
While loop
It is a variant of the while loop. This loop will always execute a block of code once, and then it will
repeat the loop as long as the specified condition is true. This loop will always be executed at least
once, even condition is false, because the code is executed before the condition is tested.
syntax :
JAVASCRIPT APPLICATIONS
 Client-side validation
 Dynamic drop-down menus
 Manipulate HTML layers
 Animate elements on a page
 Displaying clocks
 Displaying popup windows .
COOKIES
A cookie is an amount of information that persists between a
server-side and a client side. A web browser stores this
information at the time of browsing .
 When a user sends a request to the server, then each of that each of that
request is treated as a new request is treated as a new request is treated
as a new request is treated as a new request sent by the different user .
 So, to recognize the old user, we need to add the cookie with the
response from the server.
 Browser at the client-side
 Computer network is an interconnection of geographically distributed multiple
computers.
 LAN it spread within the room or building.
 MAN it spread within the one city to another.
 WAN it spread all over the world .
 PAN it spread in small area with limited distance.
IP Address is a unique number identify the electronic machine or device which
connected to a network.
 PROTOCOL is a set of rules or instructions.
 FTP stands for file transfer protocol used for file transfer from one machine to
another.
 HTTP stands for hyper text transfer protocol used for transmitting and
displaying information.
 SMTP simple mail transfer protocol used for email.
 PPP point to point protocol used for the heavier and faster connection.
 CLIENT is a machine or device that accesses a service made available by a
server .
 Server is a powerful machine or device that provide the service to its client.
 Javascript is a client side scripting language that allows creating of dynamic
and interactive web pages.
Javascript

More Related Content

Similar to Javascript

Internetandjava
InternetandjavaInternetandjava
Internetandjava
muniinb4u
 
JavaInternetlearning
JavaInternetlearningJavaInternetlearning
JavaInternetlearning
muniinb4u
 
Networking Java Socket Programming
Networking Java Socket ProgrammingNetworking Java Socket Programming
Networking Java Socket Programming
Mousmi Pawar
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
lencho3d
 

Similar to Javascript (20)

ppttips
ppttipsppttips
ppttips
 
Internetandjava
InternetandjavaInternetandjava
Internetandjava
 
ppttips
ppttipsppttips
ppttips
 
Java
JavaJava
Java
 
ppttips
ppttipsppttips
ppttips
 
JavaInternetlearning
JavaInternetlearningJavaInternetlearning
JavaInternetlearning
 
ppt tips
ppt tipsppt tips
ppt tips
 
ppttips
ppttipsppttips
ppttips
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
Networking Java Socket Programming
Networking Java Socket ProgrammingNetworking Java Socket Programming
Networking Java Socket Programming
 
Introduction to WAMP, a protocol enabling PUB/SUB and RPC over Websocket
Introduction to WAMP, a protocol enabling PUB/SUB and RPC over WebsocketIntroduction to WAMP, a protocol enabling PUB/SUB and RPC over Websocket
Introduction to WAMP, a protocol enabling PUB/SUB and RPC over Websocket
 
Come ti "pusho" il web con WebSockets: da 0 a SignalR
Come ti "pusho" il web con WebSockets: da 0 a SignalR Come ti "pusho" il web con WebSockets: da 0 a SignalR
Come ti "pusho" il web con WebSockets: da 0 a SignalR
 
Soap Standard
Soap StandardSoap Standard
Soap Standard
 
Java Network Programming.pptx
Java Network Programming.pptxJava Network Programming.pptx
Java Network Programming.pptx
 
Computer networks - CBSE New Syllabus (083) Class - XII
Computer networks - CBSE  New Syllabus (083) Class - XIIComputer networks - CBSE  New Syllabus (083) Class - XII
Computer networks - CBSE New Syllabus (083) Class - XII
 
Internship msc cs
Internship msc csInternship msc cs
Internship msc cs
 
Glosario
GlosarioGlosario
Glosario
 
112321 112333 wirless application protocol
112321 112333 wirless application protocol112321 112333 wirless application protocol
112321 112333 wirless application protocol
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
 
REST APIs and MQ
REST APIs and MQREST APIs and MQ
REST APIs and MQ
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Revolutionizing SAP® Processes with Automation and Artificial Intelligence
Revolutionizing SAP® Processes with Automation and Artificial IntelligenceRevolutionizing SAP® Processes with Automation and Artificial Intelligence
Revolutionizing SAP® Processes with Automation and Artificial Intelligence
Precisely
 

Recently uploaded (20)

AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Revolutionizing SAP® Processes with Automation and Artificial Intelligence
Revolutionizing SAP® Processes with Automation and Artificial IntelligenceRevolutionizing SAP® Processes with Automation and Artificial Intelligence
Revolutionizing SAP® Processes with Automation and Artificial Intelligence
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 

Javascript

  • 1.
  • 2.
  • 3. COMPUTER NETWORK A Computer network is an interconnection of geographically distributed multiple computers in such a way that meaningful transmission and exchange of information become possible .
  • 4. Advantages of computer network  : Hardware such as printers can be shared by all the computers on the network.  : Some software and files such as databases can be shared by different users.  : An internet connection can be shared.
  • 5. :- 1 LAN -Local Area Network. 2 WAN -Wide Area Network. 3 MAN -Metropolitan Area 4 PAN -Personal Area Network.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. WRITE A PROGRAM IN JAVA SCRIPT TO FIND THE SUM OF TWO NUMBERS USING VARIABLE. <HTML> <BODY> <SCRIPT LANGUAGE = “JAVA SCRIPT”> VAR X = 50; VAR Y = 50; VAR Z=X+Y; DOCUMENT. WRITE( “ <B>SUM OF VALUES: “+Z+”); </SCRIPT> </BODY> </HTML> OUTPUT : SUM OF VALUES: 100.
  • 12. AN OPERATOR IS CAPABLE OF MANIPULATING A CERTAIN VALUE OR OPERAND. OPERATORS ARE USED TO PERFORM SPECIFIC MATHEMATICAL AND LOGICAL COMPUTATIONS ON OPERANDS.
  • 13.  . ARITHMETIC OPERATORS.  . COMPARISON OPERATORS.  . LOGICAL OPERATORS.  . STRING OPERATORS.
  • 14. It designed to allow you to create scripts that can decide which lines of code are evaluated, or how many times to evaluate them. There are two different types of control structure/statements:  1conditional structures .  2 loop structures .
  • 15.
  • 16. VARIOUS CONDITIONAL STRUCTURES /STATEMENTS ARE:-  If statement.  If else statement.  If else if statement.  Switch statement
  • 17. IF STATEMENT Q1 Write a program inJavaScript to check a person is eligible for vote? <Html> <Body> <Script> Var age = 21; If(age>18) {document.Write(“<b> Person is eligible for vote </b>);} </Script> </Body> </Html>.
  • 18.
  • 19.
  • 20.
  • 21. An loop statement , or iteration ,repeatedly executes a statement known as the loop body , until the controlling expression is false(0). The control expression must have a scalar type . The while statement evaluates the control expression before executing the loop.
  • 22.  For loop.  While loop.  Do while loop.
  • 23.
  • 25. It is a variant of the while loop. This loop will always execute a block of code once, and then it will repeat the loop as long as the specified condition is true. This loop will always be executed at least once, even condition is false, because the code is executed before the condition is tested. syntax :
  • 26. JAVASCRIPT APPLICATIONS  Client-side validation  Dynamic drop-down menus  Manipulate HTML layers  Animate elements on a page  Displaying clocks  Displaying popup windows .
  • 27. COOKIES A cookie is an amount of information that persists between a server-side and a client side. A web browser stores this information at the time of browsing .
  • 28.  When a user sends a request to the server, then each of that each of that request is treated as a new request is treated as a new request is treated as a new request is treated as a new request sent by the different user .  So, to recognize the old user, we need to add the cookie with the response from the server.  Browser at the client-side
  • 29.  Computer network is an interconnection of geographically distributed multiple computers.  LAN it spread within the room or building.  MAN it spread within the one city to another.  WAN it spread all over the world .  PAN it spread in small area with limited distance. IP Address is a unique number identify the electronic machine or device which connected to a network.  PROTOCOL is a set of rules or instructions.  FTP stands for file transfer protocol used for file transfer from one machine to another.  HTTP stands for hyper text transfer protocol used for transmitting and displaying information.
  • 30.  SMTP simple mail transfer protocol used for email.  PPP point to point protocol used for the heavier and faster connection.  CLIENT is a machine or device that accesses a service made available by a server .  Server is a powerful machine or device that provide the service to its client.  Javascript is a client side scripting language that allows creating of dynamic and interactive web pages.