Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Program Structure:-

                                   जावा स्क्रिप्ट प्रोग्राम नोटपैड जैसे टेक्स्ट एडिटर प्रोग्राम में टाइप या edit किया जाता है इसके बाद इसे एक HTML फ़ाइल के रूप में save किया जाता है अर्थात फ़ाइल नाम “.html” एक्सटेंशन के साथ अंत में, इसे इंटरनेट एक्सप्लोरर जैसे किसी भी ब्राउज़र प्रोग्राम में executed किया जाता है।  JS में पूरी स्क्रिप्ट लिखने के लिए हमें सबसे पहले इसे HTML में शामिल करना होगा। ऐसा करने के लिए हम “script” टैग का उपयोग करते हैं। ओपनिंग टैग (<script>) स्क्रिप्ट को शुरू करता है और क्लोजिंग टैग (<script>) इसे खत्म करता है।

Syntax:-

 <script type= “text/JavaScript”>

              JavaScript Code

     </script>

 

Program Structure:-

                         Java Script program is typed or edited in a text editor program like Notepad after which it is saved as an HTML file i.e. with file name “.html” extension. Finally, it is executed in any browser program such as Internet Explorer. To write a complete script in JS, we first need to include it in HTML. To do this we use the “script” tag. The opening tag (<script>) starts the script and the closing tag (<script>) ends it.

Syntax:-

 <script type= “text/JavaScript”>

              JavaScript Code

     </script>

error: Content is protected !!