Page 101 - CodePilot V5.0 C8
P. 101

JAVASCRIPT FOR

                       7                                 BEGINNERS








                 PRIMARY PREVIEW

                    JavaScript
                    Setting Up JavaScript
                    Understanding the <SCRIPT> Tag
                    Types of JavaScript
                    Output Statement in JavaScript
                    Components of a JavaScript Statement
                    Including HTML Tags in JavaScript
                    Functions in JavaScript
                    JavaScript Popup Boxes
                    Some More Programs











                          AIRO, I keep hearing about JavaScript whenever
                          we talk about HTML. What is JavaScript?

                                                                            It is a scripting language that
                                                                         makes websites interactive—like

                                                                        buttons, animations and games!


                          So, it’s not just for looks, but
                          for making websites work?
                                                                              Exactly! JavaScript lets you
                                                                             add actions, like pop-ups or
                                                                                          form validation.





                                                                        Yes, many online games, such as

                          Can I make games with it too?               2048, Flappy Bird, Chess and more
                                                                                are built with JavaScript!




                                                                                                                  99
                                                                                            JavaScript for Beginners
   96   97   98   99   100   101   102   103   104   105   106