Category Archives: JavaScript

Javascript Splice Function

By | January 6, 2020

JavaScript Splice function is use to add and remove the elements in the Javascript Array. In order to remove elements first parameter in splice is the position and second parameter is the number of elements to remove. Example #1: <!DOCTYPE html> <html> <body> <p id=”splice”></p> <script> var array = [“Java”, “Node”, “PHP”, “Python”, “Mongo”]; array.splice(2,2);… Read More »

JavaScript Split Function || JavaScript String

By | January 4, 2020

JavaScript Split function is use to break the string into JavaScript array and we write that breaking string in parameter of split function. If we enter nothing in the split() function parameter than it will make the whole string as one element of an array. Following are the examples to illustrate the split function into… Read More »

JavaScript Function || JavaScript

By | August 24, 2019

JavaScript function is the block of code which execute when something call it. There are three main components of JavaScript function: Write function keyword before naming that function. Parameter of JavaScript function can be string , integer or variables as value is pass through variables. If developer wants to return something after executing all the… Read More »

JavaScript If Else Statement || JavaScript

By | August 24, 2019

JavaScript If else use in order to handle conditions.So that we can execute different actions in different situations. If we want to make a condition and want that our  statement will only be run in a situation when the desired condition is fulfilled. In that case we use the Javascript If else statement to fulfill… Read More »

JavaScript For Loop || JavaScript Loop

By | August 23, 2019

JavaScript has For Loop to perform a task in iterations. Nested loop is loop with in the loop . For each of the outer loop iteration the inner loop will complete its all iterations. The variable above the inner loop are accessible to the inner loop, So the instances of outer loop can be alter… Read More »

JavaScript Indexof Function || JavaScript

By | August 23, 2019

Javascript indexof function is use to find the index of word or letter present in the string. It will give the index of first occurrence of the letter in the string. JavaScript  function can be also use to find out index of element of an JavaScript array. We write element of an array in the… Read More »

JavaScript Alert Messages || JavaScript Message Box

By | August 23, 2019

Whenever a Developer wants to show JavaScript alert Messages to user,he or she write the respective message in alert() function and call it whenever he or she wants. Alert is JavaScript built-in function use to popup message box in the window web browser. The Alert Message parameter can be a String ,Number or Boolean value.… Read More »

JavaScript Array || JavaScript

By | August 23, 2019

The JavaScript Array object is a global object that is used in the construction of arrays,which are high-level, list-like objects. JavaScript array starts with index zero (0) like in Java,C++ etc. In Java, C++ and C# programming languages we use to declare their datatypes like int , string and we can’t multi-datatype array with these… Read More »