Random Name Generator Javascript

In this post, we learn to generate random names using javascript. Here we have the first and last names array. Using the getRandomInt() method we select one name from each array and concatenate them into a full name. getRandomInt method used to get a random integer between two values. Html Code Javascript Full code I … Read more

Generate Random Hex Color Code in JavaScript

In this blog post, we learn how to generate random hex colors in javascript. There are too many methods to generate Hex color. I shared one of the easiest methods. Hexadecimal color values are also supported in all browsers. A hexadecimal color is specified with #RRGGBB. #code Another method I hope It will helps you. … Read more

Create A Slug Using Jquery

In this blog post, we create a slug of string or title using Jquery. The slug is commonly used to represent the URL. Which is important for SEO. Here we use replace() method of jquery. The replace() the method returns a new string with some or all matches of a pattern replaced by a replacement. HTML Jquery Result I hope … Read more

Print Specific Div Using Javascript and Jquery

Print Specific Div Using

In this post, I shared jquery code to print a specific div. Often we need to print invoices or tables. So instead of printing the entire page, we have to print the specific div. We can easily do this task through jquery. Print Div Using Javascript Javascript Print Div Using JQuery Html Jquery I hope … Read more

Convert String To Character Array – Javascript

Convert String To Character Array

In this post we lean three method to convert string to character array in javascript. 1. String split() method The split() method divides a String into an ordered list of substrings, puts these substrings into an array, and returns the array.  Result A,B,C,D 2. Array.from() method The Array.from() static method creates a new, shallow-copied Array instance from an array-like or iterable object. Result … Read more

Find Character Index In String in Javascript

Hello coder, In this post, we learn how to find a character index in a string in JavaScript. Here I make variable str with string value and try to find the index of “r” character. Script Console result BrijBrijpal Sharma is a web developer with a passion for writing tech tutorials. Learn JavaScript and other web development technology. … Read more

Get First n Characters of String in Javascript

Get First n Characters of String

Hello coder, In this article, we learn how to get the first n characters of a string in JavaScript. We use .substring() a method that returns the part of a string between the 0 and n indexes. Example 1 JavaScript Console Result Example 2 javascript Console Result BrijBrijpal Sharma is a web developer with a passion for writing tech tutorials. Learn JavaScript and other web … Read more

How to Open a New Tab in Javascript?

Open a new tab in Javascript

Here coder in this blog post we learn how to open a new tab in javascript on button click. In most cases, this should happen directly in the onclick handler for the link to prevent pop-up blockers and the default “new window” behavior. You could do it this way, or by adding an event listener to … Read more

Javascript Whatsapp Group Link

Here friends, here I am share some Javascript Whatsapp Group Link. You can ask your doubts by messaging in some of these groups and can also answer the questions of others. HTML/CSS JavaScript CLASS Join Group Nothing but Javascript Join Group Programmers World Join Group Javascript Hub Join Group Just Javascript Join Group Javascript Developers … Read more