Understanding and Advantages of JavaScript Programming Pros and Cons

Understanding and Advantages of JavaScript

  • May 7, 2022
  • 0 Comments

The Javascript programming language is an object-oriented programming language for building interactive web pages. A Java script allows user entries to be processed as required after they are loaded into an HTML form. Javascript offers several advantages to web developers. It can be used to easily and quickly add functionality to web applications. Added functionality to […]

JavaScript Program to Create a Timer Programming

JavaScript Program to Create a Timer

  • May 6, 2022
  • 0 Comments

Write a JavaScript Code to Create a Timer onload. <html>     <head>         <script type=”text/javascript”>         var c=0         var t         function timedCount()         {             document.getElementById(‘txt’).value=c             […]

JavaScript Program to Calculate the Sum Total Programming

JavaScript Program to Calculate the Sum Total

  • May 6, 2022
  • 0 Comments

In this scripting program, you will learn how to calculate the sum total of the 5 subjects. Each individually entered by the users and finally, the user will calculate the total by clicking on the total button. <html> <head> <script>   function calculateMarks(math, science, english, nepali, social) {     total =  parseInt(math) + parseInt(science) […]

Comments and Syntax Programming

JavaScript – Comments and Syntax

  • September 30, 2020
  • 0 Comments

Comments in JavaScript Normally in JavaScript, the comments are treated as text between //. Multiple line comments are treated as the text between /* and */ Comments are required to make code understandable, we don’t have to think we are not only the coder, programmer & expert. If another engineer or developer check any part […]

Variables, Naming Rules, and Syntax Programming

JavaScript – Variables, Naming Rules, and Syntax

  • September 30, 2020
  • 0 Comments

Variables and Naming Rules Variables can be used to hold values [e.g.: (x=10) or expression (a=b+c)].  Can have short names (like x and y) or more descriptive names (age, sum total volume)  Declared using the keyword var.  Rule For Naming Variables Names must begin with a letter.  Names can also begin with $ and _.  […]

JavaScript in Head and Body Programming

JavaScript – JavaScript in Head and Body Tag

  • September 30, 2020
  • 0 Comments

JavaScript can be written inside both the <head> section and <body> section. Sometimes we need to write the JavaScript code in both sections to better understand or calling the different functions. While writing JavaScript code <head> and <body> sections we have to use <script> tag for both. Here you can see an example where I […]

JavaScript inside Body Tag Programming

JavaScript – Put JavaScript inside Body Tag

  • September 30, 2020
  • 0 Comments

JavaScript code can be placed inside the <body> and </body> tag of the HTML document. Using JavaScript code in the body section will be better for the loading of the web page or HTML document. We can put JavaScript code in the <head> section also but that will take more time to load the webpage. […]

JavaScript Tag, Attribute & Syntax Programming

JavaScript – Script Tag, Attributes, and Syntax

  • September 22, 2020
  • 0 Comments

The <script> tag is used to define the JavaScript code. It identifies the block of the script on the page. The <script> tag loads the script file which has extensions [eg. .js, script.js], or the script code written inside the <script> tag. Attributes of <script> Tag Attribute Value Description type media_type It specifies the media […]

JavaScript vs Java Programming

JavaScript – Java Programming Vs JavaScript

  • September 22, 2020
  • 0 Comments

Java & java-script: Java & javascript have the only a name in common and nothing else. They are poles apart. Java is basically a programming language that is an enhancement of C++ having a distinctive feature of being able to run on various machines and operating systems like Windows NT, Mac Os, Unix. Javascript is […]