JavaScript Snippets

How to Delete Resource with the Fetch API
Learn how to delete an external resource with the use of Fetch API
31 Aug 2021

How to make PATCH Request with Fetch API
Learn how to make the PATCH request with the Fetch API
31 Aug 2021

Updating a resource with the Fetch API from front-end application
Learn how to update an existing resource using the fetch API in JavaScript the easy and native way.
30 Aug 2021

Axios Delete Request Example
Learn how to use the delete method in axios HTTP client to remove a resource from an external API
30 Aug 2021

How to make Axios PATCH Request
Learn how to perform PATCH requst in Axios the easy way. This meto
30 Aug 2021

Send a POST Request with a Fetch API in JavaScript
Learn how to create a resource from the front-end with fetch to call an external API with the POST method.
29 Aug 2021

How to make Axios PUT Request
Learn how to perform PUT request in Axios the easy way
28 Aug 2021

Getting a Resource with Fetch API in JavaScript
Learn how to get or request a resource using fetch API in JavaScript the easy and native way.
27 Aug 2021

How to make an Axios POST request
Learn how to make a POST request in Axios HTTP Client the easy way. Get to know how to pass headers and body data in Axios.
27 Aug 2021

How to make an Axios GET request
Learn how to perform an axios GET request from your web application to call an external API with ease
27 Aug 2021

How to save div as image with Html2Canvas with AJAX request
Learn how to capture a screenshot of a div or any other tags with Html2Canvas
24 Aug 2021

How to Rendered Blade View as a String in Laravel
Learn how to render the a blade view into a string within the backend code of Laravel application
23 Aug 2021

How to get plain base64 encoded image format in Laravel
Learn how to get plain base64 image format in Laravel with the help of Laravel Intervention package
22 Aug 2021

How to Capitalize Words in JavaScript
Learn how to capitalize word in JavaScript the easy way. JavaScript capitalize code snippet and helper
23 Oct 2021

How to Fix Yarn Trouble With Network Connection
Learn how to solve "There appears to be trouble with your network connection" when running the yarn command using these simple steps
08 Nov 2021

How to Count Total Words in JavaScript
Learn how to easily count total words in JavaScript using simple regex function
13 Nov 2021

JavaScript uppercase first letter and each word in es6
Learn how to JavaScript uppercase first letter and each word in es6
23 Nov 2021

How to toggle Print Preview for Browsers
Learn how to toggle the print preview modal for all browsers using JavaScript
02 Jan 2022

How to Empty an Array in Javascript
Learn how to How to Empty an Array in Javascript the easy way
23 Jun 2022

How to Implement Web Share API
Learn How to Implement Web Share API the easy way to share your online content natively
23 Jun 2022

How to Get the User Selection Text on a Web Page
Learn how to get the user selection text on a web page the easy way
28 Jun 2022

Scroll to Top One-Liner Snippet
Learn how to define Scroll Scroll to Top One-Liner to ease the way to write your code.
28 Jun 2022

Detect Internet Bandwith One-Liner Snippet
Learn how to Detect Internet Bandwith With One-Liner Snippet
28 Jun 2022

URL Redirect One-Liner Snippet
Learn how to define URL Redirect With One-Liner Snippet
28 Jun 2022