Category: JavaScript

JS RegExp Object

JavaScript RegExp Object The Javascript RegExp object consists of properties and methods that are used to find and replace characters that fit in a string. JavaScript Math Object Example Match() <script type="text/javascript"> <!-- var txt = "Los Angels is a magic...

JS Math Object

JavaScript Math Object The Javascript Math object is used for performing mathematical calculations using properties and functions like: max, min, round, random, sin, cos, sqrt, log, ceil, abs, e, pi. JavaScript Math Object Example Max() <script type="text/javascript"> <!-- var a =...

JS String Object

JavaScript String Object The Javascript String object is a series of characters in a character string. With String object you can manipulate strings. JavaScript Array Object Example 1: <script type="text/javascript"> <!-- var city="New York city!"; document.write(city.length); //--> </script> Result: 14 Example...

JS Array Object

JavaScript Array Object The Javascript Array object is a one-dimensional array that has several properties and methods. JavaScript stores lists of values in array. Create JavaScript Array Object Example 1: <script type="text/javascript"> <!-- var cities=new Array(); cities[0]="London"; cities[1]="New York"; cities[2]="Toronto"; cities[3]="Berlin";...

JS Objects

JavaScript Objects JavaScript Objects An object is a collection of properties and methods withheld under one name. Properties Properties or attributes of an object describes the special features and identity. <script> var a="Hello people!"; document.write(a.length); </script> Result: 13 Methods Methods or...