Shubham Vora has Published 962 Articles

How do you get a timestamp in JavaScript?

Shubham Vora

Shubham Vora

Updated on 25-Jul-2022 08:39:25

4K+ Views

In this tutorial, we will learn to get a timestamp in JavaScript. It never happens that software developers or application developers don’t require to play with date and time. In many situations, they are required to play with date and timestamp. For example, to show the time on the user’s ... Read More

How do you find out the caller function in JavaScript?

Shubham Vora

Shubham Vora

Updated on 25-Jul-2022 08:35:18

6K+ Views

In this tutorial, we will learn to find out the caller function in JavaScript. The function is the reusable code, and users can call it from anywhere. But sometimes, they need to know who is the caller function to perform some operation.For example, suppose that we can call any single ... Read More

How do you convert a string to a character array in JavaScript?

Shubham Vora

Shubham Vora

Updated on 25-Jul-2022 08:05:36

6K+ Views

This tutorial teaches us to convert a string to a character array in JavaScript. A string is the sequence of characters. To solve our problem, we just need to split every character.There can be various ways to make a character array from the string in JavaScript, and some built-in methods ... Read More

How do you access the matched groups in a JavaScript regular expression?

Shubham Vora

Shubham Vora

Updated on 25-Jul-2022 07:35:18

687 Views

This tutorial will teach us to access the matched groups in JavaScript regular expression. The regular expression is the sequence of the character, also called the RegEx, and it is useful to match specific patterns in the string.There can be more than one match for the specific pattern in the ... Read More

How does recursion function work in JavaScript?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 13:16:55

507 Views

This article will teach you how to create a JavaScript recursive function-a function that calls itself-using the recursion method. The process of recursion involves calling itself. Recursive functions are those that call themselves repeatedly. A condition to cease calling itself is always included in recursive functions. Otherwise, it will continue ... Read More

How does JavaScript 'return' statement work?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 13:06:08

1K+ Views

In this article, we will learn how to work with a return statement in JavaScript. A specific value from the function is returned to the function caller using the return statement. Whenever the return statement is run, the function will stop. The code that follows the return statement won't be ... Read More

How does JavaScript .prototype work?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 13:01:53

251 Views

In this example, we will learn how the prototype works in JavaScript. It is rare if a JavaScript developer doesn’t use the objects while developing the functions, and the objects can make a lot of work easy for developers.The prototype is also the advanced concept associated with the objects in ... Read More

How do I print Unicode characters in the console using JavaScript?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 12:55:58

3K+ Views

In this article, we will learn how to print Unicode characters in the console using JavaScript. No matter the platform, the software, or the language, Unicode assigns a unique number to each character.Most writing systems' characters are defined by the universal character set known as Unicode, which also assigns each ... Read More

How do I display image in alert/confirm box in JavaScript?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 12:41:15

4K+ Views

In this tutorial, we will learn to display the image in the alert or confirm box in JavaScript. The alert() is the JavaScript method that displays the alert or confirms box on the top center of the screen when you invoke it.As a programmer and user, you have seen on many ... Read More

How do I declare a namespace in JavaScript?

Shubham Vora

Shubham Vora

Updated on 22-Jul-2022 12:22:55

3K+ Views

A namespace is a programming concept that gives identifiers (names of types, functions, variables, etc.) scope to avoid name conflicts. For instance, a program may need to use the same variable name in many contexts. In such a case, namespaces will separate these contexts so that the same identifier may ... Read More

Advertisements