SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Kelompok 8  Java Script : Control Statement II Oleh: Kukuh I. 5108100122 Brian M. 5108100156 Yodiar Hellian  5108100165
Chapter 8 - JavaScript: Control Statements II 1. Introduction 2. Essentials of Counter-Controlled Repetition 3.  For  Repetition Statement 4. Examples Using the  for  Statement 5.  Switch  Multiple-Selection Statement 6.  Do … while  Repetition Statement 7.  Break  and  continue  Statements 8. Labeled  break  and  continue  Statements 9. Logical Operators
1.  Introduction   ,[object Object],[object Object]
2.  Essentials of Counter-Controlled Repetition   ,[object Object],[object Object],[object Object],[object Object],[object Object]
While Counter.html
3.   for  Repetition Statement   ,[object Object],[object Object],[object Object],[object Object]
3.   for  Repetition Statement for (  var counter=1  ; counter<=7  ; ++counter ) Initial value of control variable Increment control variable Control variable  name Final value of control variable  for which the condition is true for keyword Loop-continuation condition
3.   for  Repetition Statement counter <=  7 document.writeln(  &quot;<p style=amp;quot;font-size: &quot; + counter +  &quot;examp;quot;>XHTML font size &quot; +  counter +  &quot;ex</p>&quot; ); true false var counter =  1 ++counter Establish  initial value of control  variable. Determine  if  final value of control  variable  has been  reached. Body of loop  (this may be many  statements) Increment the control  variable. Fig. 9.4   for  repetition structure flowchart.
For Counter.html
4.  Examples Using the  for  Statement   ,[object Object],[object Object],[object Object],[object Object],[object Object]
Sum.html
Interest.html
5.   switch  Multiple-Selection Statement   ,[object Object],[object Object],[object Object]
SwitchTest.html
5.   switch  Multiple-Selection Statement case a case a action(s) true false . . . break case b action(s) break false false case z case z action(s) break default action(s) true true case b
6.   do … while  Repetition Statement   ,[object Object],[object Object],[object Object]
6.   do…while  Repetition Structure condition true action(s) false Fig. 9.10 do … while  repetition statement flowchart.
DoWhile.html
7.   break  and  continue  Statements   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
BreakTest.html
ContinueTest.html
8.  Labeled  break  and  continue  Statements   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
BreakLabelTest.html
ContinueLabelTest.html
9.  Logical Operators   ,[object Object],[object Object],[object Object],[object Object]
9  Logical Operators
9.  Logical Operators
LogicalOperators.html

Weitere ähnliche Inhalte

Was ist angesagt?

Control Structures in Python
Control Structures in PythonControl Structures in Python
Control Structures in PythonSumit Satam
 
C++ decision making
C++ decision makingC++ decision making
C++ decision makingZohaib Ahmed
 
Control and conditional statements
Control and conditional statementsControl and conditional statements
Control and conditional statementsrajshreemuthiah
 
Chapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsChapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsIt Academy
 
Conditional Loops Python
Conditional Loops PythonConditional Loops Python
Conditional Loops Pythonprimeteacher32
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loopsbsdeol28
 
Control structures in java
Control structures in javaControl structures in java
Control structures in javaVINOTH R
 
Loops in C Programming Language
Loops in C Programming LanguageLoops in C Programming Language
Loops in C Programming LanguageMahantesh Devoor
 
04 control structures 1
04 control structures 104 control structures 1
04 control structures 1Jomel Penalba
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statementsKuppusamy P
 
C lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareC lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareGagan Deep
 
Understand Decision structures in c++ (cplusplus)
Understand Decision structures in c++ (cplusplus)Understand Decision structures in c++ (cplusplus)
Understand Decision structures in c++ (cplusplus)Muhammad Tahir Bashir
 
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested Loop
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested LoopLoops in C Programming | for Loop | do-while Loop | while Loop | Nested Loop
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested LoopPriyom Majumder
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control StructureSokngim Sa
 

Was ist angesagt? (20)

C++ chapter 4
C++ chapter 4C++ chapter 4
C++ chapter 4
 
Decision making and looping
Decision making and loopingDecision making and looping
Decision making and looping
 
Control Structures in Python
Control Structures in PythonControl Structures in Python
Control Structures in Python
 
C++ decision making
C++ decision makingC++ decision making
C++ decision making
 
TDD in Powershell
TDD in PowershellTDD in Powershell
TDD in Powershell
 
Control and conditional statements
Control and conditional statementsControl and conditional statements
Control and conditional statements
 
Chapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsChapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java Statements
 
Conditional Loops Python
Conditional Loops PythonConditional Loops Python
Conditional Loops Python
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loops
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Loops in C Programming Language
Loops in C Programming LanguageLoops in C Programming Language
Loops in C Programming Language
 
04 control structures 1
04 control structures 104 control structures 1
04 control structures 1
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statements
 
C lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareC lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshare
 
Chap 6(decision making-looping)
Chap 6(decision making-looping)Chap 6(decision making-looping)
Chap 6(decision making-looping)
 
Understand Decision structures in c++ (cplusplus)
Understand Decision structures in c++ (cplusplus)Understand Decision structures in c++ (cplusplus)
Understand Decision structures in c++ (cplusplus)
 
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested Loop
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested LoopLoops in C Programming | for Loop | do-while Loop | while Loop | Nested Loop
Loops in C Programming | for Loop | do-while Loop | while Loop | Nested Loop
 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control Structure
 
Vs c# lecture7
Vs c# lecture7Vs c# lecture7
Vs c# lecture7
 

Andere mochten auch

Flow control, exception handling array
Flow control, exception handling arrayFlow control, exception handling array
Flow control, exception handling arrayRangga Ananto
 
Object oriented programming menggunakan java
Object oriented programming menggunakan javaObject oriented programming menggunakan java
Object oriented programming menggunakan javaAntara BoyKean
 
Modul praktikum dasar dasar pemrograman java
Modul  praktikum dasar dasar pemrograman javaModul  praktikum dasar dasar pemrograman java
Modul praktikum dasar dasar pemrograman javastephan EL'wiin Shaarawy
 
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)Melina Krisnawati
 
Laughing ..
Laughing ..Laughing ..
Laughing ..SSMC
 
Ang Sinasabi Nila Tungkol Kay Muhammad
Ang Sinasabi Nila Tungkol Kay MuhammadAng Sinasabi Nila Tungkol Kay Muhammad
Ang Sinasabi Nila Tungkol Kay MuhammadFanar
 
06 05 kingdom a-right luke 6 20-31 final
06 05 kingdom a-right luke 6 20-31 final06 05 kingdom a-right luke 6 20-31 final
06 05 kingdom a-right luke 6 20-31 finalSSMC
 
Troy Dunnahoe Case Study
Troy Dunnahoe Case StudyTroy Dunnahoe Case Study
Troy Dunnahoe Case Studyguest38051c4
 
Father’s Day Sermon 17th June 2012
Father’s Day Sermon 17th June 2012Father’s Day Sermon 17th June 2012
Father’s Day Sermon 17th June 2012SSMC
 
God's ultimate purpose rom8 18 30
God's ultimate purpose rom8 18 30God's ultimate purpose rom8 18 30
God's ultimate purpose rom8 18 30SSMC
 
"I will build My church and the gates of hell shall not prevail agaist it"
"I will build My church and the gates of hell shall not prevail agaist it" "I will build My church and the gates of hell shall not prevail agaist it"
"I will build My church and the gates of hell shall not prevail agaist it" SSMC
 
Judgement or discernment 18 august 2013 csg
Judgement or discernment 18 august 2013  csgJudgement or discernment 18 august 2013  csg
Judgement or discernment 18 august 2013 csgSSMC
 
Orientazioa kontrol txartela
Orientazioa kontrol txartelaOrientazioa kontrol txartela
Orientazioa kontrol txartelaEsther
 
Introducing past experiences
Introducing past experiencesIntroducing past experiences
Introducing past experiencesmaucgg80
 
Presentation web 2.0
Presentation web 2.0Presentation web 2.0
Presentation web 2.0maucgg80
 
Audience Research
Audience ResearchAudience Research
Audience Researchguest743866
 
Linkedin Gen Script
Linkedin Gen ScriptLinkedin Gen Script
Linkedin Gen Scripthowardhuang
 
De Dag Dat Alles Beter Is Proloog
De Dag Dat Alles Beter Is ProloogDe Dag Dat Alles Beter Is Proloog
De Dag Dat Alles Beter Is ProloogMirne
 

Andere mochten auch (20)

Flow control, exception handling array
Flow control, exception handling arrayFlow control, exception handling array
Flow control, exception handling array
 
Object oriented programming menggunakan java
Object oriented programming menggunakan javaObject oriented programming menggunakan java
Object oriented programming menggunakan java
 
Modul praktikum dasar dasar pemrograman java
Modul  praktikum dasar dasar pemrograman javaModul  praktikum dasar dasar pemrograman java
Modul praktikum dasar dasar pemrograman java
 
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
 
Laughing ..
Laughing ..Laughing ..
Laughing ..
 
Ang Sinasabi Nila Tungkol Kay Muhammad
Ang Sinasabi Nila Tungkol Kay MuhammadAng Sinasabi Nila Tungkol Kay Muhammad
Ang Sinasabi Nila Tungkol Kay Muhammad
 
06 05 kingdom a-right luke 6 20-31 final
06 05 kingdom a-right luke 6 20-31 final06 05 kingdom a-right luke 6 20-31 final
06 05 kingdom a-right luke 6 20-31 final
 
DevOps at ACCU 2012
DevOps at ACCU 2012DevOps at ACCU 2012
DevOps at ACCU 2012
 
Troy Dunnahoe Case Study
Troy Dunnahoe Case StudyTroy Dunnahoe Case Study
Troy Dunnahoe Case Study
 
Father’s Day Sermon 17th June 2012
Father’s Day Sermon 17th June 2012Father’s Day Sermon 17th June 2012
Father’s Day Sermon 17th June 2012
 
God's ultimate purpose rom8 18 30
God's ultimate purpose rom8 18 30God's ultimate purpose rom8 18 30
God's ultimate purpose rom8 18 30
 
"I will build My church and the gates of hell shall not prevail agaist it"
"I will build My church and the gates of hell shall not prevail agaist it" "I will build My church and the gates of hell shall not prevail agaist it"
"I will build My church and the gates of hell shall not prevail agaist it"
 
Judgement or discernment 18 august 2013 csg
Judgement or discernment 18 august 2013  csgJudgement or discernment 18 august 2013  csg
Judgement or discernment 18 august 2013 csg
 
Orientazioa kontrol txartela
Orientazioa kontrol txartelaOrientazioa kontrol txartela
Orientazioa kontrol txartela
 
Introducing past experiences
Introducing past experiencesIntroducing past experiences
Introducing past experiences
 
Presentation web 2.0
Presentation web 2.0Presentation web 2.0
Presentation web 2.0
 
Audience Research
Audience ResearchAudience Research
Audience Research
 
Number
NumberNumber
Number
 
Linkedin Gen Script
Linkedin Gen ScriptLinkedin Gen Script
Linkedin Gen Script
 
De Dag Dat Alles Beter Is Proloog
De Dag Dat Alles Beter Is ProloogDe Dag Dat Alles Beter Is Proloog
De Dag Dat Alles Beter Is Proloog
 

Ähnlich wie Kelompok 8 Pbw

C# language basics (Visual Studio)
C# language basics (Visual Studio) C# language basics (Visual Studio)
C# language basics (Visual Studio) rnkhan
 
C# language basics (Visual studio)
C# language basics (Visual studio)C# language basics (Visual studio)
C# language basics (Visual studio)rnkhan
 
Android Application Development - Level 3
Android Application Development - Level 3Android Application Development - Level 3
Android Application Development - Level 3Isham Rashik
 
Chapter 3 - Flow of Control Part II.pdf
Chapter 3  - Flow of Control Part II.pdfChapter 3  - Flow of Control Part II.pdf
Chapter 3 - Flow of Control Part II.pdfKirubelWondwoson1
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#Prasanna Kumar SM
 
Csphtp1 05
Csphtp1 05Csphtp1 05
Csphtp1 05HUST
 
Mockito with a hint of PowerMock
Mockito with a hint of PowerMockMockito with a hint of PowerMock
Mockito with a hint of PowerMockYing Zhang
 
Operators, control statements represented in java
Operators, control statements  represented in javaOperators, control statements  represented in java
Operators, control statements represented in javaTharuniDiddekunta
 
Intro To C++ - Class 12 - For, do … While
Intro To C++ - Class 12 - For, do … WhileIntro To C++ - Class 12 - For, do … While
Intro To C++ - Class 12 - For, do … WhileBlue Elephant Consulting
 

Ähnlich wie Kelompok 8 Pbw (20)

Ch05
Ch05Ch05
Ch05
 
Programming in Arduino (Part 2)
Programming in Arduino  (Part 2)Programming in Arduino  (Part 2)
Programming in Arduino (Part 2)
 
C# language basics (Visual Studio)
C# language basics (Visual Studio) C# language basics (Visual Studio)
C# language basics (Visual Studio)
 
C# language basics (Visual studio)
C# language basics (Visual studio)C# language basics (Visual studio)
C# language basics (Visual studio)
 
Janakiram web
Janakiram webJanakiram web
Janakiram web
 
Android Application Development - Level 3
Android Application Development - Level 3Android Application Development - Level 3
Android Application Development - Level 3
 
Chapter 3 - Flow of Control Part II.pdf
Chapter 3  - Flow of Control Part II.pdfChapter 3  - Flow of Control Part II.pdf
Chapter 3 - Flow of Control Part II.pdf
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
 
Md04 flow control
Md04 flow controlMd04 flow control
Md04 flow control
 
Model and Design
Model and Design Model and Design
Model and Design
 
Lab5
Lab5Lab5
Lab5
 
Csphtp1 05
Csphtp1 05Csphtp1 05
Csphtp1 05
 
Loops and iteration.docx
Loops and iteration.docxLoops and iteration.docx
Loops and iteration.docx
 
Ppt on java basics1
Ppt on java basics1Ppt on java basics1
Ppt on java basics1
 
Chap05
Chap05Chap05
Chap05
 
Mockito with a hint of PowerMock
Mockito with a hint of PowerMockMockito with a hint of PowerMock
Mockito with a hint of PowerMock
 
Operators, control statements represented in java
Operators, control statements  represented in javaOperators, control statements  represented in java
Operators, control statements represented in java
 
Intro To C++ - Class 12 - For, do … While
Intro To C++ - Class 12 - For, do … WhileIntro To C++ - Class 12 - For, do … While
Intro To C++ - Class 12 - For, do … While
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Switch case and looping jam
Switch case and looping jamSwitch case and looping jam
Switch case and looping jam
 

Kürzlich hochgeladen

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Kürzlich hochgeladen (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Kelompok 8 Pbw

  • 1. Kelompok 8 Java Script : Control Statement II Oleh: Kukuh I. 5108100122 Brian M. 5108100156 Yodiar Hellian 5108100165
  • 2. Chapter 8 - JavaScript: Control Statements II 1. Introduction 2. Essentials of Counter-Controlled Repetition 3. For Repetition Statement 4. Examples Using the for Statement 5. Switch Multiple-Selection Statement 6. Do … while Repetition Statement 7. Break and continue Statements 8. Labeled break and continue Statements 9. Logical Operators
  • 3.
  • 4.
  • 6.
  • 7. 3.   for Repetition Statement for ( var counter=1 ; counter<=7 ; ++counter ) Initial value of control variable Increment control variable Control variable name Final value of control variable for which the condition is true for keyword Loop-continuation condition
  • 8. 3.   for Repetition Statement counter <= 7 document.writeln( &quot;<p style=amp;quot;font-size: &quot; + counter + &quot;examp;quot;>XHTML font size &quot; + counter + &quot;ex</p>&quot; ); true false var counter = 1 ++counter Establish initial value of control variable. Determine if final value of control variable has been reached. Body of loop (this may be many statements) Increment the control variable. Fig. 9.4 for repetition structure flowchart.
  • 10.
  • 13.
  • 15. 5.   switch Multiple-Selection Statement case a case a action(s) true false . . . break case b action(s) break false false case z case z action(s) break default action(s) true true case b
  • 16.
  • 17. 6.   do…while Repetition Structure condition true action(s) false Fig. 9.10 do … while repetition statement flowchart.
  • 19.
  • 22.
  • 25.