Manisha Patil has Published 46 Articles

Why JavaScript is called Richer Interface?

Manisha Patil

Manisha Patil

Updated on 24-Aug-2022 08:39:31

354 Views

There are a number of benefits to knowing JavaScript, often known as rich interface − By merging dynamic HTML elements, including HTML and JavaScript, rich user interfaces can be developed. However, because there are no interactions on the server side, the scope of such an interface is restricted to client-side ... Read More

What is Undefined X1 in JavaScript

Manisha Patil

Manisha Patil

Updated on 24-Aug-2022 07:12:53

221 Views

In order to look at the outcome of Undefined X 1 in JavaScript, we first need to understand exactly Undefined in JavaScript represents. JavaScript has a keyword called undefined that has something to do with memory. The global object has the attribute undefined. In other words, it is a variable ... Read More

What is the drawback of creating true private methods in JavaScript?

Manisha Patil

Manisha Patil

Updated on 24-Aug-2022 07:09:29

268 Views

Using private methods has a simple underlying concept. In this situation, you can declare private methods or private properties, which are used to hide a class's internal functionality from those other classes, whenever you wish to keep something private, whether it be a method or a property. You can include ... Read More

Tag names of body element's children in JavaScript?

Manisha Patil

Manisha Patil

Updated on 24-Aug-2022 06:52:36

265 Views

A property of an element called "children" delivers all child elements of the element as objects. We will learn how to use Javascript to obtain the child element of the parent in this tutorial. The challenge is to use JavaScript to choose a certain element in an HTML document and ... Read More

Is JavaScript a pass-by-reference or pass-by-value language?

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 14:54:54

389 Views

JavaScript provides us with functions, that are a collection of pre-defined instructions or statements that are only carried out when we call the function that contains this code. The function accepts one or more arguments as input and output. You can pass values or references for the input arguments. All ... Read More

How would you deep copy an Object in Javascript?

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 14:41:09

161 Views

Clone often refers to copying a value from one place to another. We duplicate one value to another using JavaScript, which is known as cloning. In JavaScript, there are actually two different sorts of copying. The ability to distinguish between deep and shallow clones is something that every programmer, regardless ... Read More

How to generate a random number in JavaScript?

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 14:40:22

2K+ Views

The Math object, a built-in object with attributes or methods for carrying out mathematical operations, has the native implementation of the random() method in JavaScript. As its name suggests, the random() method aids in the generation of random numbers. The return value of the Math.random() method is a floating-point, sort ... Read More

CloneNode() method in JavaScript?

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 14:36:34

7K+ Views

As indicated by the name, it clones the node. The cloneNode() method in JavaScript makes a duplicate of the node object that is sent in and delivers the clone node object. On the element you would like to copy, simply call the cloneNode() method. Pass true as an option if ... Read More

Use of 'weakMap.has()' method in JavaScript?

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 14:26:38

76 Views

The key-value pairs are stored using JavaScript WeakMap Objects. A WeakMap object differs from a Map object in that such objects should be weakly referred and "object" should be stored in the WeakMap object as a key. In comparison, you can add simple values like strings, booleans, symbols, and numbers ... Read More

Passing unknown number of arguments to a function in Javascript

Manisha Patil

Manisha Patil

Updated on 23-Aug-2022 13:46:05

2K+ Views

The terms "parameters" and "arguments of a function" are frequently used synonymously in JavaScript, despite the fact that there is a substantial distinction between the two. The function parameters are included when we define a function. While defining a function, you may also specify a list of variables; these variables ... Read More

Advertisements