Page 137 - DCAP408_WEB_PROGRAMMING
P. 137

Mandeep Kaur,  Lovely Professional University                                  Unit 5: Scripting Language





                              Unit 5: Scripting Language                                        Notes


            CONTENTS
            Objectives
            Introduction

            5.1  Java Script Programming
                 5.1.1  Advantages of JavaScript
                 5.1.2  Disadvantages of JavaScript

                 5.1.3  Creating Our First Program in JavaScript
            5.2  Java Script Data Types
                 5.2.1  Primitive Data Types
                 5.2.2  Composite Data Types
            5.3  Variables

                 5.3.1  Declaring vs. Initializing Variables and Null
                 5.3.2  JavaScript Variable Naming Conventions
                 5.3.3  Variable Scope

            5.4  Arrays
            5.5  Operators
            5.6  JavaScript Loops
                 5.6.1  The for Loop
                 5.6.2  The while Loop

                 5.6.3  The do...while Loop
                 5.6.4  Break
                 5.6.5  Continue

            5.7  JavaScript Objects
                 5.7.1  String Object
                 5.7.2  Date Object
                 5.7.3  Boolean Object
                 5.7.4  Math Object

                 5.7.5  JavaScript Functions
            5.8  Dialog Boxes
            5.9  String Manipulation Functions

            5.10 Using Timer in Web Page
            5.11 Summary
            5.12 Keywords
                                                                                 Contd...


                                           LOVELY PROFESSIONAL UNIVERSITY                                   131
   132   133   134   135   136   137   138   139   140   141   142