The RegExp object is known as regular expression, it is used to specify the pattern of characters. Regular expressions are patterns used to match character combinations in strings. This is used for the pattern matching and also very useful for search and replace the text. In JavaScript, these are objects. This tutorial describes how to use …
JavaScript Tutorials
Javascript – Handling Runtime Errors using try/catch/finally
Error handling means detection of errors in the programming. When we are executing javascript code, we may get different types of errors. It can be syntax errors or run time errors. Syntax errors occur when misspelling of identifiers and keywords, missing double quotes in strings, use of undeclared variables, bad references to objects, improper use …
JavaScript – Window Object
JS Window Object JavaScript window object is top level of JavaScript Object hierarchy which represents browser window interface which contains objects like documents, history etc. The window object is also known as Browser Object Model (BOM).The window object supports all global variables, functions and variables. Global variables are called as properties and global functions are …
JavaScript Validation
JavaScript can be used to validate data in the HTML documents before sending the content to the server. Validation occur at server side when client had entered data successfully and pressed submit button. We can use validation for some fields such as: to check whether required field is empty ? to check whether user has …
JavaScript Syntax
JavaScript was originally named LiveScript, was developed by Netscape. JavaScript is light weight client side scripting programming language used to build interactive web sites. It can be executed by all modern browsers like Internet Explorer, Google Chrome, Mozilla Firefox, Safari etc.It is case-sensitive language. JavaScript can be divided into three parts: the core, client side …
JavaScript – Data Types and Variables
JavaScript Data Types JavaScript provides set of data types to hold data such as String values, Decimal values and Boolean values. The data types depend on the values which are hold by the variable. The JavaScript data types acts as dynamically means same variable can be used as different types. JavaScript contain following three primitive …
JavaScript Comparision Operators
Javascript Operators can be categorized as: Comparison operators Conditional Operators Logical Operators All the above three return true/false value. Comparison Operator Comparison operators are also known as relational operators. They are used in conditional statements, especially in loops where result of comparison decides whether execution should proceed. Comparison operators are used to test true or …