Generally, we navigate to different pages of a website by clicking the provided buttons on the web page. But, sometimes there is no back button provided on the web pages. In that case, we use the browser back and forward buttons to navigate through the different pages of the website. In this tutorial, we are going to learn about the different ways … [Continue reading...]
Parse Float with 2 decimals in javascript
In this tutorial, we will more about how to parse the float with 2 decimals in JavaScript. Parse Float with 2 Decimals in JavaScript To parse float with 2 decimal places: let us see parse float with 2 decimals by example. First, assign a value that holds the floating point number which we want to parse. Then use … [Continue reading...]
How to redirect to another page in next js
In this tutorial, we will see how to redirect to another page in next js, there are three ways to redirect one page to another page in nextjs. Let's see each option in a detailed way. Using Link Component in Next.JS Using Link component in nextjs it is like a href tag you can just use the href attribute and mention the redirect URL, … [Continue reading...]
How to get the query parameters from URL in Next JS?
In nextjs we can easily get the query params with the use of useRouter() that we can import from 'next/router' then assign userRouter() to the router variable after that using router.query we can get the exact query string values. if you are passing multiple queries also we can get the values from router.query. ☞ Check out Next.js & … [Continue reading...]
How to convert array to space separated strings in javascript
To convert array to space separated strings in javascript we can use the join() method of an array, by passing the string with space as a parameter. the Array.join() method returned the strings with spaces as an output. ☞ Check out The Complete JavaScript Course 2023: From Zero to Expert! (Buy now, the offer ends in a few … [Continue reading...]
How to convert array to comma separated strings in javascript
To Convert array to comma separated strings in Javascript first need to pass the array to the String object like String(arr), then the String(arr) will return the comma separated strings as an output. ☞ Check out The Complete JavaScript Course 2023: From Zero to Expert! (Buy now, the offer ends in a few hours) Please refer to the … [Continue reading...]
Recent Comments