The if statement in Javascript
One of the most frequently used statements in JavaScript (and indeed, in many languages), is the if statement. The if statement has the following syntax:
Read tutorialTHE TUTORIAL LIBRARY
One of the most frequently used statements in JavaScript (and indeed, in many languages), is the if statement. The if statement has the following syntax:
Read tutorialThe logical AND operator in JavaScript is indicated by the double ampersand (&&):
Read tutorialThe logical NOT operator in JavaScript is the same as in C and Java, indicated by an exclamation point (!). Unlike logical OR and logical AND operators, the logical NOT always retu
Read tutorialThe bitwise NOT is represented by a tilde (~) and is one of just a few ECMAScript operators related to binary mathematics. The bitwise NOT is a three-step process:
Read tutorialIt's also possible to convert values using a process called type casting. Type casting allows you to access a specific value as if it were of a different type. Three type casts are
Read tutorialJavaScript provides two methods for converting non-number primitives into numbers: parseInt() and parseFloat(). As you may have guessed, the former converts a value into an integer
Read tutorialThe interesting thing about JavaScript primitive values for Booleans, numbers, and strings is that they are pseudo-objects, meaning that they actually have properties and methods.
Read tutorialBy rule, keywords are reserved and cannot be used as variable or function names. Here is the complete list of JavaScript keywords.
Read tutorialECMAScript is the standard that set the basics of Javascript syntax. Developers familiar with languages such as Java, C, and Perl will find ECMAScript syntax easy to pick up becaus
Read tutorialAround 1992, a company called Nombas began developing an embedded scripting language called C-minus-minus (Cmm for short). The idea behind Cmm was simple: a scripting language powe
Read tutorialIf you are looking for a solution to remove an element from a select list just by clicking on it then obviously you can do it using Javascript. This tutorial explains a step by ste
Read tutorialAssuming you have a html form that has a textarea or a input text box to enter text. If you only have to allow a specic number of characters into that box and remove any text that
Read tutorialOne example today. A better developer tomorrow.