Page 70 - Chinmaya_C8_flipbook
P. 70

GROUP DISCUSSION                                                                       Communication



                     Divide the students  in two groups and organise a group discussion on Internal JavaScript and
                     External JavaScript.







                      LAB ACTIVITY                                                                  Computational Thinking



                      Visit your computer lab and perform the following actions:
                           Write a program in HTML and use JavaScript to display the virtual alert box which displays your
                         name. Use both Internal JS and External JS for the same program.
                           Write a program in HTML and use statements to calculate the product of two numbers and display
                         the result. Take the values as input from the user.
                           Write a JavaScript program to swap the value of two variables without using a third variable. Take
                         the values of both variables from the user.
                          Write a JavaScript program to calculate the area of a squire.
                           Write a JavaScript program to convert Kilometres to centimetres.





                          COding Zone       COding Zone     {}      =     COding Zone Computational Thinking
                                 {C ding z ne}
                                                                                                              []
                                                                                                     COding Zone
                                                                          </>
                      1.   What will be the value of x, y, and z after executing the following code in JavaScript?
                         var x = 8 + 8;
                         var y = "8" + 8;
                         var z = "Thanks" + 8;

                      2.   If a = 10, b = 2, and c = 20, then write a code in JavaScript to display the result of the following
                         expression:

                         d = a + 2 (b + c) - c/5







                         CAREER HERE

                  People who are expert in JavaScript may pursue their career as a JavaScript Developer.



                     FOR THE TEACHER

                    1.  Discuss about some more statements of JavaScript with the students.
                    2.  Explain the features of JavaScript in detail to the students.




                   68   Premium Edition-VIII
   65   66   67   68   69   70   71   72   73   74   75