Welcome to JavaScript!

Welcome to JavaScript!

Welcome to JavaScript! JavaScript is one of the most popular programming languages on earth and is used to add interactivity to webpages, process data, as well as create various applications like (mobile apps, desktop apps, games, and more). Why to Learn JavaScript Javascript is a MUST for students and working professionals to become a great Software Engineer …

Welcome to JavaScript! Read More »

Javascript tutorial

Java Script in Detail

Java Script in Detail: JavaScript (.js) is a light-weight object-oriented programming language which is used by several websites for scripting the webpages. It is an interpreted, full-fledged programming language that enables dynamic interactivity on websites when applied to an HTML document. Although, Java Script has no connectivity with Java programming language. The name was suggested …

Java Script in Detail Read More »

external in javascript

External JavaScript

External JavaScript are useful and practical when the same code is used in a number of different web pages. JavaScript files have the file extension .js. Scripts can also be placed in external files. To use an external script, put the name of the script file in the src (source) attribute of the <script> tag. …

External JavaScript Read More »

syntax in javascript

JavaScript Syntax

JavaScript Syntax can be implemented using JavaScript statements that are placed within the <script>… </script> HTML tags in a web page. You can place the <script> tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the <head> tags. The script tag takes two important attributes − Language − This attribute specifies …

JavaScript Syntax Read More »

comments in javascript

JavaScript Comments

Not all JavaScript statements are “executed”. Code after a double slash //, or between /* and */, is treated as a comment. JavaScript Comments are ignored, and are not executed. Advantages of JavaScript Comments There are mainly two advantages of JavaScript comment. To make code easy to understand It can be used to elaborate the code …

JavaScript Comments Read More »

variable in javascript

JavaScript Variable

JavaScript Variable are containers for storing data values. The value of a variable can change throughout the program. there are two types of variable:Local variable & global variable. Use the var keyword to declare a variable: Example: JavaScript local variable A local variable will be visible only within a function where it is defined. Function …

JavaScript Variable Read More »

operators in javascript

JavaScript Operator

JavaScript Operator are symbols that are used to perform operations on operands. Types of JavaScript Operator Arithmetic Operators Comparison (Relational) Operators Bitwise Operators Logical Operators Assignment Operators Special Operators Arithmetic Operators Arithmetic operators are used to perform arithmetic operations on the operands. + :Addition – :Substraction * :Multiplication / :Divide % :Modulus(Remainder) — :Decrement. Example: …

JavaScript Operator Read More »

switch case in javascript

JavaScript Switch Case

The JavaScript Switch Case statement is used to perform different actions based on different conditions. Flow Chart of JavaScript Switch Case: Let’s see the simple example of switch statement in java script. The Break Keyword When Java Script code reaches a break keyword, it breaks out of the switch block. This will stop the execution …

JavaScript Switch Case Read More »

for loop in javascript

JavaScript For Loop

JavaScript For loop: Loops can execute a block of code a number of times. They are handy in cases in which you want to run the same code repeatedly, adding a different value each time. JavaScript has three types of loops: for loop while loop do-while loop Java Script For loop The for loop is …

JavaScript For Loop Read More »