The word void means “empty space,” as per the dictionary. “Nothing” in programming is returned when there is no result to return. [Read more…] about What Does JavaScript:void(0) Mean?
JavaScript String constructor Property
This JavaScript Constructor property performs the same task as it does in the other objects that have it (like the Date and Array objects). . It sends back the value of the JavaScript Constructor function that created the String object’s prototype. To use the JavaScript Constructor property, you have to use a String object rather than a literal. [Read more…] about JavaScript String constructor Property
JavaScript Tutorial
Java Script Strings
Java Script
What is JavaScript
JavaScript is an easy-to-use object-oriented script language designed for creating dynamic web page of website that link resources on both clients and servers. Netscape’s JavaScript called as the glue that holds website Web page together. This means that JavaScript will work on any platform (Windows, Linux, Mac, etc.). You don’t need any special tools to use. You can write program text editor. [Read more…] about What is JavaScript
JavaScript Variables
JavaScript Variables: Every computer language provides some kind of support for variables. In JavaScript, programmers use the var statement to create a new Javascript variable. When you create a JavaScript variable, you need to give it a name. This is just like putting labels on the food containers in your refrigerator. When you look at the label, you can see what is inside without having to open the container. [Read more…] about JavaScript Variables
JavaScript Switch Statement
JavaScript Switch Statement allows you to take a single variable value and execute a different block of code based on the value of the variable. If you wish to check for a number of different values, this can be an easier method than the use of a set of nested if/else statements. The first line of a JavaScript Switch Statement would have the following syntax: [Read more…] about JavaScript Switch Statement
JavaScript statements
A JavaScript Statement is a basic programming unit, usually representing a single step in a JavaScript program. Think of a JavaScript Statement as a sentence: Just as you string sentences together to create a paragraph (or a chapter, or a book), you combine JavaScript Statements to create a JavaScript program. For example: [Read more…] about JavaScript statements
JavaScript Popup Boxes
JavaScript Popup Box: JavaScript provides the ability to create small windows called JavaScript Popup Box. You can create alert boxes, confirm boxes, and even prompt boxes. These boxes let you generate output and receive input from the user. [Read more…] about JavaScript Popup Boxes
JavaScript Operators | Types of JavaScript Operators
An JavaScript Operators, as the name suggest, performs some action. JavaScript Programming languages would be virtually useless if they did not provide the programmer with JavaScript Operators to use. An JavaScript Operators is a symbol or word that performs some sort of calculation, comparison, or assignment on one or more values. In some cases, an JavaScript Operators provides a shortcut to shorten the code so that you have less to type. [Read more…] about JavaScript Operators | Types of JavaScript Operators
JavaScript Functions
What is a function? A JavaScript Functions is really just an encapsulated bunch of code. We’ve been looking at a bunch of JavaScript syntax: all of that can go inside JavaScript Functions and often that’s what you’ll do. When you put code inside a JavaScript Functions it isn’t run right away, like “loose” code. You decide when the code runs by calling the function, and you can do that as often as you want to. This is part of the benefit of JavaScript Functions. [Read more…] about JavaScript Functions
JavaScript If…Else Statements
JavaScript If Else: Conditional statements are also called “if/then” statements, because they perform a task only if the answer to a question is true: “If I have enough money then I’ll go to the movies.” The basic script of a JavaScript If Else looks like this: [Read more…] about JavaScript If…Else Statements
JavaScript For Loop
A JavaScript For Loop is a block of code that allows you to repeat a section of script a certain number of times; perhaps changing certain variable values each time the code is executed. JavaScript features two basic loop types: [Read more…] about JavaScript For Loop
JavaScript while Loop
A JavaScript While Loop just looks at a short comparison and repeats until the comparison is no longer true. To begin, take a look at the general syntax for Script the first line of a While Loop: [Read more…] about JavaScript while Loop
JavaScript Comments
JavaScript Comments or ( JS Comments ) are very useful and practical when developing code. It is possible to comment out a specific line or a block of code with JavaScript Comments. [Read more…] about JavaScript Comments
JavaScript Strings Object
JavaScript String Object: Strings are an important part of any programming language. Whether you are storing a person’s last name or the name of a product in inventory, a string is often the best way to store that value. A string is any text inside a quote pair. A quote pair consists of either double quotes or single quotes. [Read more…] about JavaScript Strings Object
JavaScript String anchor() Method
The JavaScript Anchor is a string function that can be accessed using dot operator with string variable. It transforms the specified text into hypertext. [Read more…] about JavaScript String anchor() Method
JavaScript String length Property
JavaScript Length; You will often find it necessary to count characters and words in strings, particularly with strings from form submissions. For example, you might need to count the number of characters in a password to ensure that a user selects a password with a minimum number of characters. [Read more…] about JavaScript String length Property
JavaScript Prototype
A JavaScript Prototype is an object from which other objects inherit properties. Every object has a prototype by default. An object in JavaScript is any unordered collection of key-value pairs. If it’s not a primitive (undefined, null, Boolean, number or string) its an object. [Read more…] about JavaScript Prototype
JavaScript String replace() Method
JavaScript replace() Method: To replace information in a string, you can use regular expressions and the JavaScript replace() Method of the String object. The syntax for using the JavaScript replace() Method is as follows: [Read more…] about JavaScript String replace() Method
JavaScript String match() Method
JavaScript Match() Method compares a regular expression and a string to see whether they match. It returns an array containing one or more matches, depending on how it is used. If no match is found, it returns –1. [Read more…] about JavaScript String match() Method
JavaScript String search() Method
JavaScript String search() Method: Whenever working with a strings, sometimes we need to determine if a string contains some specific substring, and if it does, you need to determine where in the string that substring occurs. [Read more…] about JavaScript String search() Method
JavaScript String Format
JavaScript String Format: When you create a text string in JavaScript, a string object is associated with that string. The string object provides a series of methods you can use to adjust the format of the string. JavaScript String Format can be useful when you want to display a string and quickly apply some formatting to it. The JavaScript String Format are as follows: [Read more…] about JavaScript String Format
JavaScript String big() Method
JavaScript Big Method: JavaScript Big Method is used to display a specified string in a big size font. JavaScript Big Method returns the string with the tag <BIG> surrounding it, like this: [Read more…] about JavaScript String big() Method
JavaScript String blink() Method
JavaScript Blink Method: JavaScript Blink Method is used to display a specified string in blink tags. JavaScript Blink Method returns the string with the tag <BLINK> surrounding it, like this: [Read more…] about JavaScript String blink() Method
JavaScript String split() Method
JavaScript String split() Method: A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams. An example of a delimiter is the comma character, which acts as a field delimiter in a sequence of comma-separated values; each of the substrings is an element in the list. [Read more…] about JavaScript String split() Method
Difference Between Slice Substr and Substring
That’s right; there are three methods for getting part of a string out of a larger string. First, you can use slice. It takes two parameters: the first parameter is the starting index, and the second one is the ending index, meaning the index of the character after the last character in the desired substring. If you leave the second one off, it will slice until the end of the string. [Read more…] about Difference Between Slice Substr and Substring
JavaScript String substr() Method
JavaScript Substr Method: If you wanted to pulls out a portion of a string and assign that cut-out part to another variable or use it in an expression, you would use the JavaScript Substr Method. [Read more…] about JavaScript String substr() Method
JavaScript String substring() Method
JavaScript SubString Strings are constructed of characters. The JavaScript SubString method returns a set of characters within its calling String object. Its general syntax of JavaScript SubString method: [Read more…] about JavaScript String substring() Method