Page 96 - DCAP202_Fundamentals of Web Programming
P. 96
Sarabjit Kumar, Lovely Professional University Unit 8: Programming Constructs in JavaScript
Unit 8: Programming Constructs in JavaScript Notes
CONTENTS
Objectives
Introduction
8.1 Conditional Statements
8.1.1 If...Else Statement
8.1.2 Switch Statement
8.2 Looping Statements
8.2.1 The For Loop
8.2.2 The While Loop
8.2.3 The do...while Loop
8.2.4 Break
8.2.5 Continue Statements
8.3 Functions
8.3.1 Function Literals
8.3.2 Built-in Functions
8.3.3 User-defined Functions
8.3.4 Calling Functions
8.3.5 Functions Properties
8.3.6 Using the Arguments Array
8.3.7 Local Variables
8.4 Dialog Boxes
8.4.1 Alert Dialog Box
8.4.2 Confirmation Dialog Box
8.4.3 Prompt Dialog Box
8.5 Summary
8.6 Keywords
8.7 Review Questions
8.8 Further Readings
Objectives
After studying this unit, you will be able to:
Discuss about the conditional statements in JavaScript
Explain looping structures
Discuss about the functions and its uses
LOVELY PROFESSIONAL UNIVERSITY 89