Skip to content

Tag Archives: JavaScript-Properties

Below is the example of the Number constructor property.   Example:   html <!DOCTYPE html> <html>    <body style="text-align:center;">     <h2>         Welcome to GeeksforGeeks     </h2>              … Read More
The Math object is used to perform mathematical operations on numbers. Example: <!DOCTYPE html> <html>     <body>         <h2>GeeksforGeeks</h2>            <script> // Return PI value(3.141592653589793)             document.write(Math.PI);         </script>… Read More
The visibility property is used to hide or show the content of HTML elements. The visibility property specifies that the element is currently visible on… Read More
The source Property in JavaScript is used to return the text of the text of the RegExp pattern. Syntax: RegExpObject.source Where RexExp refers to the… Read More
The global Property in JavaScript is used to specify whether the “g” modifier is set or not. If the “g” modifier is set than this… Read More
The lastIndex Property in JavaScript is used to specify the index at which to start the next match. If “g” modifier is not present this… Read More
The multiline Property property in Javascript is used to specify whether the “m” modifier is set or not. If the “m” modifier is set than… Read More
Below is the example of the Error name Property. Example: <script>     try {             eval("alert('GeeksforGeeks)");         }      catch (err) {             document.write( err.name);         } </script> Output: SyntaxError In… Read More
Below is the example of the Infinity Property. Example: <script>     function test() {         document.write(         -3.645464512375121213E+1203466 +         "<br>"         + 3.4548643575312453512345E+1203466);     }     test(); </script> Output: -Infinity Infinity… Read More
Below is the example of the undefined Property. Example: <script>     var a ="Geeksforgeeks"     function test() {         if (typeof a === "undefined") {             txt = "'a'… Read More
Below is the example of the Date constructor property.   Example: JavaScript <script type = "text/javascript">     var date = new Date();     document.write("Date.constructor:"             + date.constructor); </script>     Output:… Read More
Below is the example of the Error message property. Example:  JavaScript <script>     try {          alert("A computer science portal");         }      catch(err) {          document.write(err.message);         } </script> Output:… Read More
Below is the example of the String constructor Property.   Example:   html <script> function func() {       var str = 'Geeks for Geeks';       var value… Read More
Below is the example of the Boolean constructor property.   Example:   javascript <script type = "text/javascript">         var bool = false;         document.write("bool.constructor:"                 + bool.constructor); </script>       Output:  … Read More
Below is the example of the Array constructor property.   Example:   html <!DOCTYPE html> <html>     <head>         <title>             JavaScript Array constructor Property         </title>     </head>       <body style="text-align:… Read More

Start Your Coding Journey Now!