SlideShare a Scribd company logo
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

ppttips
ppttipsppttips
ppttips
muniinb4u
 
ppttips
ppttipsppttips
ppttips
muniinb4u
 
Internetandjava
InternetandjavaInternetandjava
Internetandjava
muniinb4u
 
ppttips
ppttipsppttips
ppttips
muniinb4u
 
Java
JavaJava
ppttips
ppttipsppttips
ppttips
muniinb4u
 
JavaInternetlearning
JavaInternetlearningJavaInternetlearning
JavaInternetlearning
muniinb4u
 
ppt tips
ppt tipsppt tips
ppt tips
muniinb4u
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
raksharao
 
Networking Java Socket Programming
Networking Java Socket ProgrammingNetworking Java Socket Programming
Networking Java Socket Programming
Mousmi Pawar
 
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
sametmax
 
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
Alessandro Melchiori
 
Soap Standard
Soap StandardSoap Standard
Soap Standard
Kumar
 
Java Network Programming.pptx
Java Network Programming.pptxJava Network Programming.pptx
Java Network Programming.pptx
RoshniSundrani
 
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
Deepak Singh
 
Internship msc cs
Internship msc csInternship msc cs
Internship msc cs
Pooja Bhojwani
 
Glosario
GlosarioGlosario
Glosario
Luis Lopez
 
112321 112333 wirless application protocol
112321 112333 wirless application protocol112321 112333 wirless application protocol
112321 112333 wirless application protocol
JAINIK PATEL
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
lencho3d
 
this is a power point presentation on chat application
this is a power point presentation on chat applicationthis is a power point presentation on chat application
this is a power point presentation on chat application
mdprince1262
 

Similar to Javascript (20)

ppttips
ppttipsppttips
ppttips
 
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
 
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
 
this is a power point presentation on chat application
this is a power point presentation on chat applicationthis is a power point presentation on chat application
this is a power point presentation on chat application
 

Recently uploaded

GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 

Recently uploaded (20)

GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 

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.