SlideShare ist ein Scribd-Unternehmen logo
1 von 14
JavaScript – Class 2 ,[object Object],[object Object],[object Object],[object Object]
[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],See page 6 in handout
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],no semicolon == means: is the same or is equal or  is true the condition to be evaluated is inside the parenthesis code to be executed if the condition is true see page 7 handout
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],See page 8 and 9 in handout
[object Object],see page 10 handout Gives you the ability to execute code when the condition evaluates to true  and also when it evaluates to false  if  (condition)  {   code here will execute if condition is true’  }   else   {   code here will execute if condition is false; }
[object Object],see page 10 handout <script language=“JavaScript”> var variable1 = 123;  var variable2 = 124;  if  (variable1 == variable2)  {   alert (&quot;true&quot;);  }   else   { alert(&quot;false&quot;); }   </script>
[object Object],see page 11 handout var variable1 = 123; var variable2 = 124; if  (variable1 == variable2)  {  alert(&quot;equal&quot;);  }   else   if (variable1 < variable2) { alert(&quot;less than&quot;); } else   { alert(&quot;none of the above&quot;); }   “ else if “block can be repeated as needed
[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement
_jenica
 
Javascript - Tutorial
Javascript - TutorialJavascript - Tutorial
Javascript - Tutorial
adelaticleanu
 
course slides -- powerpoint
course slides -- powerpointcourse slides -- powerpoint
course slides -- powerpoint
webhostingguy
 

Was ist angesagt? (20)

If-else and switch-case
If-else and switch-caseIf-else and switch-case
If-else and switch-case
 
Unit 2.5
Unit 2.5Unit 2.5
Unit 2.5
 
Practical Ext JS Debugging
Practical Ext JS DebuggingPractical Ext JS Debugging
Practical Ext JS Debugging
 
Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement
 
10. switch case
10. switch case10. switch case
10. switch case
 
Switch Case in C Programming
Switch Case in C ProgrammingSwitch Case in C Programming
Switch Case in C Programming
 
Javascript - Tutorial
Javascript - TutorialJavascript - Tutorial
Javascript - Tutorial
 
Lecture13 control statementswitch.ppt
Lecture13 control statementswitch.pptLecture13 control statementswitch.ppt
Lecture13 control statementswitch.ppt
 
Introduction to php 5
Introduction to php   5Introduction to php   5
Introduction to php 5
 
Free PHP Book Online | PHP Development in India
Free PHP Book Online | PHP Development in IndiaFree PHP Book Online | PHP Development in India
Free PHP Book Online | PHP Development in India
 
Javascript - Break statement, type conversion, regular expression
Javascript - Break statement, type conversion, regular expressionJavascript - Break statement, type conversion, regular expression
Javascript - Break statement, type conversion, regular expression
 
Janakiram web
Janakiram webJanakiram web
Janakiram web
 
Lesson 4 constant
Lesson 4  constantLesson 4  constant
Lesson 4 constant
 
PHP - Introduction to PHP Error Handling
PHP -  Introduction to PHP Error HandlingPHP -  Introduction to PHP Error Handling
PHP - Introduction to PHP Error Handling
 
Effective PHP. Part 6
Effective PHP. Part 6Effective PHP. Part 6
Effective PHP. Part 6
 
Static keyword a.z
Static keyword a.zStatic keyword a.z
Static keyword a.z
 
Loops in java script
Loops in java scriptLoops in java script
Loops in java script
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
course slides -- powerpoint
course slides -- powerpointcourse slides -- powerpoint
course slides -- powerpoint
 
Jsp session 10
Jsp   session 10Jsp   session 10
Jsp session 10
 

Andere mochten auch

웹접근성과 보편적 접근성
웹접근성과 보편적 접근성웹접근성과 보편적 접근성
웹접근성과 보편적 접근성
Justin Shin
 
Primary celebration (spring 2011)
Primary celebration (spring 2011)Primary celebration (spring 2011)
Primary celebration (spring 2011)
CAFOD
 
Typhoon washi gallery
Typhoon washi galleryTyphoon washi gallery
Typhoon washi gallery
CAFOD
 
精神分裂症知多少?
精神分裂症知多少?精神分裂症知多少?
精神分裂症知多少?
雪筠 林雪筠
 
Parents as leaders
Parents as leadersParents as leaders
Parents as leaders
akshay wal
 

Andere mochten auch (20)

웹접근성과 보편적 접근성
웹접근성과 보편적 접근성웹접근성과 보편적 접근성
웹접근성과 보편적 접근성
 
Remember Me?
Remember Me?Remember Me?
Remember Me?
 
Dr. William Allan Kritsonis - Employment Law PPT.
Dr. William Allan Kritsonis - Employment Law PPT.Dr. William Allan Kritsonis - Employment Law PPT.
Dr. William Allan Kritsonis - Employment Law PPT.
 
Integra: Get Your Head in the Cloud (Infographic)
Integra: Get Your Head in the Cloud (Infographic)Integra: Get Your Head in the Cloud (Infographic)
Integra: Get Your Head in the Cloud (Infographic)
 
Primary celebration (spring 2011)
Primary celebration (spring 2011)Primary celebration (spring 2011)
Primary celebration (spring 2011)
 
Student Attendance PPT. - William Allan Kritsonis, PhD
Student Attendance PPT. - William Allan Kritsonis, PhD Student Attendance PPT. - William Allan Kritsonis, PhD
Student Attendance PPT. - William Allan Kritsonis, PhD
 
IT104 Week 4 - Module/Function
IT104 Week 4 - Module/FunctionIT104 Week 4 - Module/Function
IT104 Week 4 - Module/Function
 
Typhoon washi gallery
Typhoon washi galleryTyphoon washi gallery
Typhoon washi gallery
 
Crucible2
Crucible2Crucible2
Crucible2
 
Use Of School Facilities
Use Of School FacilitiesUse Of School Facilities
Use Of School Facilities
 
Cover Letters, Résumés, and Everything Else
Cover Letters, Résumés, and Everything ElseCover Letters, Résumés, and Everything Else
Cover Letters, Résumés, and Everything Else
 
ANE parallels to Gen 1-11
ANE parallels to Gen 1-11ANE parallels to Gen 1-11
ANE parallels to Gen 1-11
 
Student Drug Testing in Schools - Dr. William Allan Kritsonis
Student Drug Testing in Schools - Dr. William Allan KritsonisStudent Drug Testing in Schools - Dr. William Allan Kritsonis
Student Drug Testing in Schools - Dr. William Allan Kritsonis
 
Practical Puppet: Systems Building Systems
Practical Puppet: Systems Building SystemsPractical Puppet: Systems Building Systems
Practical Puppet: Systems Building Systems
 
Lernen2
Lernen2Lernen2
Lernen2
 
精神分裂症知多少?
精神分裂症知多少?精神分裂症知多少?
精神分裂症知多少?
 
Parents as leaders
Parents as leadersParents as leaders
Parents as leaders
 
Macambol Messages
Macambol MessagesMacambol Messages
Macambol Messages
 
Ukazka Automat
Ukazka AutomatUkazka Automat
Ukazka Automat
 
Waterschapsbond
WaterschapsbondWaterschapsbond
Waterschapsbond
 

Ähnlich wie CSIS 138 JavaScript Class2 (20)

Lecture4
Lecture4Lecture4
Lecture4
 
C language UPTU Unit3 Slides
C language UPTU Unit3 SlidesC language UPTU Unit3 Slides
C language UPTU Unit3 Slides
 
Java căn bản - Chapter5
Java căn bản - Chapter5Java căn bản - Chapter5
Java căn bản - Chapter5
 
Jquery 1
Jquery 1Jquery 1
Jquery 1
 
Lecture 5 - Comm Lab: Web @ ITP
Lecture 5 - Comm Lab: Web @ ITPLecture 5 - Comm Lab: Web @ ITP
Lecture 5 - Comm Lab: Web @ ITP
 
Dti2143 chap 4 control structures aka_selection
Dti2143 chap 4 control structures aka_selectionDti2143 chap 4 control structures aka_selection
Dti2143 chap 4 control structures aka_selection
 
Dti2143 chap 4 control structures aka_selection
Dti2143 chap 4 control structures aka_selectionDti2143 chap 4 control structures aka_selection
Dti2143 chap 4 control structures aka_selection
 
Php Calling Operators
Php Calling OperatorsPhp Calling Operators
Php Calling Operators
 
Java scripts
Java scriptsJava scripts
Java scripts
 
Control All
Control AllControl All
Control All
 
Php-Continuation
Php-ContinuationPhp-Continuation
Php-Continuation
 
M C6java5
M C6java5M C6java5
M C6java5
 
Php Crash Course
Php Crash CoursePhp Crash Course
Php Crash Course
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Java script final presentation
Java script final presentationJava script final presentation
Java script final presentation
 
Php2
Php2Php2
Php2
 
Tugas Pw [6]
Tugas Pw [6]Tugas Pw [6]
Tugas Pw [6]
 
Tugas Pw [6] (2)
Tugas Pw [6] (2)Tugas Pw [6] (2)
Tugas Pw [6] (2)
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
 
Operators in java
Operators in javaOperators in java
Operators in java
 

Kürzlich hochgeladen

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

CSIS 138 JavaScript Class2

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.

Hinweis der Redaktion

  1. The JavaScript Language consists of objects CSIS 138 Instructor Teresa Pelkie Class 2 - Summer 2008