Skip to content

Category Archives: JavaScript

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
The string.length is a property in JavaScript which is used to find the length of a given string. Syntax: string.length Parameter: It does not accept… Read More
Below is the example of the string.slice() Method. Example: <script>                          var A = 'Geeks for Geeks';         b = A.slice(0,5);      c = A.slice(6,9);      d =… Read More
Below is the example of the string.localeCompare() Method. Example: <script>     gfg = 'b'.localeCompare('a');      document.write(gfg + '<br>')  </script> Output: 1 The string.localeCompare() is an inbuilt method… Read More
Below is the example of the string.repeat() Method.  Example:  Javascript <script>     A = "forGeeks";     a = A.repeat(2);     document.write(a); </script> Output:  forGeeksforGeeks The string.repeat() is an… Read More
Below is the example of the string.valueOf() Method. Example: <script>     var a = new String("GeeksforGeeks");     document.write(a.valueOf()); </script> Output: GeeksforGeeks The string.valueOf() is an inbuilt method… Read More
jQuery UI is a mixture of methods and a set of user interface effects, widgets, interactions and themes which can be provided in the web… Read More
jQuery is a powerful JavaScript library. It is more powerful than the JavaScript. The codes of jQuery are more precise, shorter and simpler than the… Read More
The array.flatMap() is an inbuilt function in JavaScript which is used to flatten the input array element into a new array. This method first of all… Read More
An ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. The contents of an ArrayBuffer cannot be directly manipulated and can… Read More
Below is the example of Date toLocaleDateString() method. Example: <script>     var dateObj = new Date();      var options = { weekday: "long",                      year: "numeric",                      month: "short", … Read More
Below is the example of Date toLocaleString() method. Example: <script>     var d = new Date(Date.UTC(2020, 9, 26, 7, 0, 0));     var result = d.toLocaleString();     document.write("Date… Read More
The keypress() method in jQuery triggers the keypress event whenever browser registers a keyboard input. So, Using keypress() method it can be detected if any… Read More
Rest parameter is an improved way to handle function parameter, allowing us to more easily handle various input as parameters in a function. The rest… Read More
Below is the example of Date now() method. Example: <script>      // Use of method Date.now()   var A = Date.now();      // Printing the number… Read More