Skip to content

Category Archives: JavaScript

The string.match() is an inbuilt function in JavaScript used to search a string for a match against any regular expression. If the match is found,… Read More
Below is the example of the string.normalize() method. Example: <script>  var a = "Geeks For Geeks";     b = a.normalize('NFC')  c = a.normalize('NFD')  d =… Read More
Below is the example of Date toLocaleTimeString() method. Example: <script>   // Here a date has been assigned   // while creating Date object   var dateobj =… Read More
Spread operator allows an iterable to expand in places where 0+ arguments are expected. It is mostly used in the variable array where there is… Read More
The window.history object contains the browsers history. First of all, window part can be removed from window.history just using history object alone works fine. The… Read More
Below is the example of weakSet.add() method. Example: <script>       function gfg() {       var weakSetObject = new WeakSet();     var objectOne = {};        // add(value)     weakSetObject.add(objectOne);… Read More
The preventDefault() method is used to prevent the browser from executing the default action of the selected element. It can prevent the user from processing… Read More
jQuery is a very powerful JavaScript framework.Using jQuery, we can add special effects to our website or web-based application. We can add various effects using… Read More
jQuery UI is used to incorporate the powerful effects in the website or web pages . In this article, about jQuery UI interactions and widgets… Read More
The string.substring() is an inbuilt function in JavaScript which is used to return the part of the given string from start index to end index.… Read More
Below is the example of Date parse() method. Example: <script>     // Taking a date string as input.     var date = "February 18, 2018 12:30 PM";… Read More
Below is the example of the string.toString() Method. Example: <script>      // Taking a string as input and printing it     // with the help of string.toString()… Read More
Chart.js is an open source JavaScript library on Github that allows you to draw different types of charts by using the HTML5 canvas element. Since… Read More
Below is the example of the string.codePointAt() Method. Example: <script>      a = "gfg"        b = a.codePointAt(1);         document.write(b + "<br>")  </script>  Output: 102 The… Read More
Below is the example of the String.fromCodePoint() Method. Example: <script>      a = String.fromCodePoint(71, 70, 71);      document.write(a); </script>  Output: GFG The String.fromCodePoint() is an inbuilt method… Read More