javascript

javascript

How to return objects from JavaScript functions

Javascript program to return objects from functions. We will learn how to return objects from a function and how to return functions from functions in JavaScript.

Read
javascript

How to take one array as input from the user in JavaScript

JavaScript program to take one array as input from the user. We will write one HTML file that will take these inputs as separated by comma and in different input box.

Read
javascript

JavaScript String search method explanation with example

JavaScript string search method explanation with example. search() method is used to search for a string using a pattern in JavaScript.

Read
javascript

How to find the base64 of a string in JavaScript

JavaScript program to find the base64 value of a string. Learn how to use btoa and atob methods of JavaScript.

Read
javascript

How to find the ASCII value of a character in JavaScript

JavaScript program to find the ASCII value of a character. We will use charCodeAt and codePointAt methods to find the ASCII values.

Read
javascript

How to convert date to number in JavaScript

JavaScript program to convert date to number. Date class provides a method called getTime and we can use this method to convert a date to a number.

Read
javascript

How to check if a date is older than one month or 30 days in JavaScript

How to check if a date is older than one month or 30 days in JavaScript. We can use the getTime method to find the time and compare two date objects.

Read
javascript

JavaScript set add() method explanation with example

JavaScript set add() method is used to add or append a new element to the end of a set. This post will show you how to use add() method with examples.

Read
javascript

JavaScript program to delete an item from a set

JavaScript program to delete an item from a set. Learn how to delete a single value, multiple values and an object from a set in JavaScript.

Read
javascript

JavaScript program to check if an array is a subarray of another array

Check if an array is a subarray of another array or not in JavaScript. We will learn 3 different ways to check for a subarray.

Read