Skip to content

Tag Archives: JavaScript-Properties

The mouseEvent altKey property is used to define whether the alt key is pressed or not. It is a boolean value. When alt key is… Read More
The mouseEvent ctrlKey property is used to define whether the ctrl key is pressed or not. It is a boolean value. When ctrl key is… Read More
The mouseEvent getModifierState() is used to return the state of specified modifier key which is being held down when the event occurs. It returns true… Read More
The mouseEvent which property is used to return a number which corresponds to the pressed mouse button when a mouse event is triggered Syntax: event.which… Read More
The mouseEvent shiftKey property is used to define whether the shift key is pressed or not. It is a boolean value. When the shift key… Read More
Below is the example of the Boolean prototype Constructor property. Example: <script>         Boolean.prototype.color = function(pro)          {             if (pro == true) {                 return "Green";             } else… Read More
Below is the example of Date prototype Property.   Example:   javascript <script>       var birthday = new Date('June 21, 2018 16:44:23');   var date1 = birthday.getDate();   var… Read More
Below is the example of the Number.MAX_VALUE & Number.MIN_VALUE Property. Example: <script>  function GFGFun() {      document.write(Number.MAX_VALUE+"<br>");     document.write(Number.MIN_VALUE+"<br>"); }  GFGFun();  </script>  Output : 1.7976931348623157e+308 5e-324 Number.MAX_VALUE… Read More
Below is the example of the Math SQRT1_2 Property.   Example: javascript <script>   // Here value of SQRT1_2 is printed.   document.write(Math.SQRT1_2); </script> Output: 0.7071067811865476 The Math.SQRT1_2… Read More
Below is the example of the Math SQRT2 Property. Example: <script>   // Here value of Math.SQRT2 is printed.   document.write(Math.SQRT2); </script> Output: 1.4142135623730951 The Math.SQRT2 is… Read More
Below is the example of the Math PI Property.  Example: Javascript <script>   // Here value of Math.PI is printed.   document.write(Math.PI); </script> Output:  3.141592653589793 The Math.PI… Read More
Below is the example of the Math LN10() Property. Example: <script>   // Here value of Math.LN10 is printed.   document.write(Math.LN10);                       </script> Output: 2.302585092994046 The Math.LN10 is… Read More
Below is the example of the Math LOG2E Property. Example:  javascript <script>   // Here value of Math.LOG2E is printed.   document.write(Math.LOG2E);                      </script> Output: 1.4426950408889634 The Math.LOG2E… Read More
Below is the example of the Math LOG10E Property.  Example: Javascript <script>   // Here value of Math.LOG10E is printed.   document.write(Math.LOG10E);                      </script> Output:  0.4342944819032518 The Math.LOG10E… Read More

Start Your Coding Journey Now!