Page 75 - Trackpad_V5_Book 8
P. 75

REVISIT



              ▶   JavaScript is a client-side scripting language used for enhancing users’ interaction with the web page by
                making web pages dynamic.
              ▶   JavaScript cannot run on its own because it is a scripting language, hence needs to be embedded within an
                HTML code.
              ▶   Commands and instructions given to the JavaScript interpreter to take some actions are called statements
                and a collection of statements is called a script or a program.













            1.  Tick ( ) the correct option.

                a.  Which of the following languages is used to make dynamic web pages?
                    (i)   HTML                                       (ii)  CSS

                   (iii)   JavaScript                                (iv)  None of these
                b.  In which year was JavaScript developed?

                    (i)   1995                                       (ii)  1985
                   (iii)   1975                                      (iv)  1997
                c.  Which of the following tags is used to add JavaScript in web page?

                    (i)  <JavaScript>                                (ii)  <head>
                   (iii)   <script>                                  (iv)  Al of these

                d.  Which of the following is used to add single line comments in JavaScript?
                    (i)  :                                           (ii)  //
                   (iii)  ;                                          (iv)  “”

            2.  Fill in the blanks using the words from the help box.


                                operator, interpreted, loosely, Brendan Eich, expression

                a.   JavaScript  was developed  by  _______________, a  Netscape  Communications  Corporation
                   programmer, in 1995.
                b.  JavaScript is an _______________ language.

                c.   JavaScript is a _______________ typed language which means it does not require a data type to be
                   declared before using it.
                d.  An _______________ is a symbol that is used to perform calculations on values or variables.

                e.  An _______________ is a unit of code that is evaluated to a value.




                                                                                 Dynamic Web Pages in HTML5  73
   70   71   72   73   74   75   76   77   78   79   80