Skip to content

Category Archives: JavaScript

jQuery is a very powerful tool which helps us to incorporate a variety of DOM traversal methods to select elements in a document randomly or… Read More
Below is the example of JavaScript Boolean method. Example: <script>      function gfg() {  document.write(Boolean(12));     }      gfg();  </script>  Output: true Boolean is a datatype that returns… Read More
JSON (JavaScript Object Notation) is most widely used data format for data interchange on the web. JSON is a lightweight text based, data-interchange format and… Read More
The height() is an inbuilt method in jQuery which is used to check the height of an element but it will not check the padding,… Read More
The jQuery is a very powerful tool which helps us to incorporate a variety of DOM traversal methods to select elements in a document randomly… Read More
Below is the example of weakMap.delete() method. Example: <script>      function gfg() {  const weakmap = new WeakMap();     const key = {};  weakmap.set(key, 6);    … Read More
Below is the example of weakMap.has() method. Example: <script>      function gfg() {  const weakmap = new WeakMap();  const key = {};  weakmap.set(key, 'gfg');     document.write(weakmap.has(key)); … Read More
Below is the example of weakMap.get()() method. Example: <script>      function gfg() {     const weakmap1 = new WeakMap();     const key1 = {};     weakmap1.set(key1,… Read More
The string.search() method is the inbuilt method in JavaScript which is used to search for a match in between regular expressions and a given string… Read More
The width() is an inbuilt function in JavaScript which is used to check the width of an element. It does not check the padding, border… Read More
JavaScript is loosely typed language and most of the time operators automatically convert a value to the right type but there are also cases when… Read More
Below is the example of the string.replace() Method. Example: <script>      var string = 'GeeksForGeeks';      var newstring = string.replace(/GeeksForGeeks/, 'GfG');         document.write(newstring);  </script>  Output: GfG The… Read More
Style display property is used to hide and show the content of HTML DOM by accessing the DOM element using JavaScript/jQuery. To hide an element,… Read More
ES6 or as it is officially called: ECMAScript2015 is a new JavaScript implementation and is arguably the hottest topic in the JS developers conventions and… Read More
JavaScript focus method is used to give focus to a html element. It sets the element as the active element in the current document. It… Read More