In JavaScript we use substring()
method to extract a sub string from a string. See in the below:
Continue reading “How to extract a substring from a string in string in javascript”
Tag: Java Script and jQuery
Dense Arrays in JavaScript
A dense array is an array that has been created with each of its elements being assigned a specific value.
Dense arrays are used exactly in the same manner as other arrays. They are declared and initialized at the same time.
Continue reading “Dense Arrays in JavaScript”
Conform Dialog Box in JavaScript
Confirm Dialog box serves as a technique for confirming user action. In JavaScript Confirm dialog box display these information:
Continue reading “Conform Dialog Box in JavaScript”
Alert Dialog Box in JavaScript
Dialog box in java script appears as separate window and their content depends on the information provided by user. Java script provide the Alert dialog box that can be used to display the string message or display some information.
Continue reading “Alert Dialog Box in JavaScript”
Array in JavaScript
In javaScript array is the object that is capable of storing a sequence of values. These values are stored in indexed locations within the array. Number of elements in Array is called by length of array.
Continue reading “Array in JavaScript”
The Strict Equality Operators
JavaScript introduces two new operators, the strict equality operators.
The strict equality operators (=== and !==) perform equality comparisons on operands of the same type. No type conversion is performed before the comparison. They should be both Integer, String, or any other JavaScript type:
operand1 === operand2
operand1 !== operand2