Skip to content

Category Archives: JavaScript

Below is the example of the String substr() Method. Example: <script>  function func() {      var str = 'Geeks for Geeks';      var sub_str = str.substr(6);      document.write(sub_str); … Read More
Below is the example of the String trim() Method. Example: <script> function func() {     var str = "GeeksforGeeks      ";     var st = str.trim();     document.write(st);  }… Read More
Connect the MongoDB database using MongooseJS to our NodeJS application Before we dive into looking how the mongoDB connects with a nodejs app using mongooseJS,… Read More
jQuery is an open source JavaScript library that simplifies the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript.… Read More
JavaScript uses 3 kind of dialog boxes : ALERT, PROMPT and CONFIRM. These dialog boxes can be of very much help for making our website… Read More
Below is the example of the Math atan( ) Method. Example: <script type="text/javascript">      document.write("When 1 is  passed as a parameter: "       + Math.atan(1)); </script> Output:… Read More
What is Atomics? The Atomics is an object in JavaScript which provides atomic operations to be performed as static methods. Just like the Math object… Read More
What is Atomics? The Atomics is an object in JavaScript which provides atomic operations to be performed as static methods. Just like the Math object… Read More
What is Atomics? The Atomics is an object in JavaScript which provides atomic operations to be performed as static methods. Just like the Math object in… Read More
What is Atomics? The Atomics is an object in JavaScript which provides atomic operations to be performed as static methods. Just like the Math object… Read More
The array.values() function is an inbuilt function in JavaScript which is used to returns a new array Iterator object that contains the values for each… Read More
Below is the example of the Math exp() Method. Example: <script type="text/javascript">    document.write("When zero is  passed as a parameter: "           + Math.exp(0)); </script> Output: When… Read More
The array.toLocaleString() is an inbuilt function in JavaScript which is basically used to convert the element of the given array to string. Syntax: arr.toLocaleString(); Return… Read More
The array.of() function is an inbuilt function in JavaScript that creates a new array instance with variables present as the argument of the function.  Syntax:… Read More
Below is the example of the Number toExponential() Method. Example:          <script type="text/javascript">     var num = 212.13456;     document.write(num.toExponential(4));           </script> Output: Output :2.1213e+2 The toExponential() method… Read More