Practical solutions

JavaScript How-to Guides How-To Guides

Solve the problem. Keep building. A collection of practical JavaScript how-to guides

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Send Emails in JavaScriptTraditionally Client-side of the websites can not send emails without the help of the server side. But we can send emails only using JavaScript code and SMTPJs, a free library of JavaScript. This article discusses how to send emails using JavaScript. How to Create Text Boxes in JavaScriptIn this article, we discuss how to create a text box in JavaScript. Also we create multiple text boxes using a for loop in JavaScript along with an example. How to Extend Multiple Classes in JavaScriptIn this guide, we will learn about how we can extend multiple classes in JavaScript. How to Open Popup Window in JavaScriptThis tutorial introduces how to open a popup window using JavaScript. How to Get Environment Variables in JavaScriptThis tutorial introduces how to get environment variables in JavaScript. How to Format JSON in JavaScriptThis tutorial introduces how to format JSON in JavaScript. How to Add Months to a Date in JavaScriptThis tutorial introduces how to add months to a date in JavaScript. How to Validate a Date in JavaScriptThis article will introduce how to validate a date in JavaScript. How to Terminate a forEach Loop Using Exceptions in JavaScriptIn this tutorial, we will talk about breaking or terminating a forEach loop with the help of exception handling in JavaScript. How to Reverse a String in JavaScriptIn this article, we will see how to reverse a string in place in JavaScript. How to Implement a Sleep Function in JavaScriptIn this article, we will see how to implement a sleep function in JavaScript using promises, async and await How to Print to Console in JavaScriptIn this article, we will see how to print various things as an output to the console in JavaScript. How to Get the Screen, Window, and Webpage Sizes in JavaScriptIn this tutorial, we will see how to get the screen, window and web page sizes in JavaScript. How to Get Current Time in JavaScriptIn this article, we will see how to get the time with the help of Date object in JavaScript. How to Close the Browser Tab in a Browser WindowIn this tutorial, we will see why it's important to close the browser tab and how to close the browser tab in browser window. How to Format a Number in JavaScriptIn this tutorial, let's discuss a way in which we can format a number in JavaScript. How to Check String Equality in JavaScriptIn this article, we'll discuss the correct way of checking string equality in JavaScript. How to Convert Arguments to an Array in JavaScriptIn this article, we will introduce how to convert an arguments object into an array in JavaScript. How to Write Data to a File in JavaScriptIn this article, you'll see some of the ways you can write data to a file in JavaScript using the HTML 5 web storage API. How to Execute the JavaScript Code After the Webpage LoadsIn this article, let's look at the various ways to execute the JavaScript code after the webpage is completely loaded. How to Search Objects From an Array in JavaScriptThis article introduces how to find objects and their values from an array in JavaScript. How to Create Counters in JavaScriptIn this article, we will discuss about various ways in which we will set counter variables in JavaScript. How to Convert Array to String in JavaScriptIn this article, we will see what are the various ways in which we can convert an array into a string in JavaScript. How to Submit Form With POST Request in JavaScriptIn this article, we will see how to submit a form POST request in JavaScript.