Page 140 - CITS - CSA - TP (Volume 1) - Hindi
P. 140

कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS





                 let fruits = [“apple”, “banana”, “orange”];
                 // Objects (collections of key-value pairs):

                 let person = { name: “Jane”, age: 25 };
                 const PI=3.14;
                 console.log(“Value of num:”, num);
                 console.log(“Value of text:”, text);

                 console.log(“Value of isTrue:”, isTrue);
                 console.log(“Value of fruits:”, fruits);

                 console.log(“Value of person:”, person);
                 console.log(“Value of PI:”, PI); // Output: 3.14
                 </script>

                 </body>
                 </html>
              3   ो ाम को .html फ़ाइल के   प म  सेव कर

              4  वेब  ाउज़र से html फ़ाइल ओपन कर
              5   ाउज़र कं सोल टैब पर जाएँ  और आउटपुट की पुि  कर ।























           टा  2: ऑपरेटरों का उपयोग करना

           I  अ रथमेिटक ऑपरेटर (Arithmetic Operators)
              1  टे  एिडटर ओपन कर

              2  िन िल खत कोड िलख

                 <html >
                 <head>
                 <title> Arithmetic Operators </title>
                 </head>
                 <body>

                 <script>
                 let a = 10;


                                                           124

                                      CITS : IT & ITES - कं  ूटर सॉ वेयर ए ीके शन - अ ास 38
   135   136   137   138   139   140   141   142   143   144   145