Abdul Rawoof has Published 35 Articles

Different techniques for copying objects in JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 11:38:47

225 Views

In JavaScript, objects are the collection of a key value pairs. The properties of the object are the keys and is denoted with a string. The value of the key is the value of the property of the given object. Types/Techniques of object copying There are 2 types of copying ... Read More

Is it possible to change values of the array when doing foreach() in javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 11:38:10

6K+ Views

Array is a data type which can store multiple elements of similar data types. For example, array is declared as integer data type then it stores one or more elements of the integer data type. In arrays the element can be manipulated when they are in a loop by using ... Read More

Disadvantages of using innerHTML in JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 12:00:15

2K+ Views

HTML stands for Hyper Text Markup Language, through the HTML we can design a block of webpages. Html is a frontend markup language that is used to build the content of frontend pages. It means that we can build a structure of web pages. Through HTML we can design the ... Read More

How do we check if an object is an array in Javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:59:58

173 Views

Array is a data type which can store multiple elements of similar data types. For example, if an array is declared as integer data type then it stores one or more elements of the integer data type. To check if the given object or to know the data type, we ... Read More

Instanceof operator in JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:59:38

776 Views

The Instanceof operator in JavaScript checks for the type of object at the run time environment. The result it returns is of Boolean type i.e., if the given input object is same as the object for which it is being checked, then it returns “true” or else it returns “false”. ... Read More

How to check whether a particular key exist in javascript object or array?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:59:20

10K+ Views

In JavaScript an object is found to be in the form of key value pairs. The keys of the objects are known as properties of the given object and is represented using a string. The property of the object can have a value which can be of any data type. ... Read More

How many values does javascript have for nothing?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:58:57

495 Views

JavaScript has two values for nothing i.e., null and undefined. These two are also the primitive types in JavaScript. Undefined Out of the two values, Undefined in JavaScript means if a variable is declared and no value is assigned to the variable, then this variable is said to be undefined. ... Read More

How to find operating system in the client machine using JavaScript?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:58:35

1K+ Views

The type of operating system used in the client machine can be detected using some of the functions in JavaScript. The different functions are discussed below. Using navigator.appVersion This property will return the information about the browser and the operating system being used in the form of a string. Syntax ... Read More

What is the use of .clear() method in Javascript weakMap?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:58:18

327 Views

WeakMap is a collection in JavaScript. This type of collection is used to store the data in the form of key-value pairs. In WeakMap, the key must be definitely an object and the values can be of any type. This collection is called as WeakMap because of the key which ... Read More

Name some methods of weakMap instances in javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:58:00

85 Views

WeakMap is a collection in JavaScript. This type of collection is used to store the data in the form of key-value pairs. In WeakMap, the key must be definitely an object and the values can be of any type. New function in weakMaps A new WeakMap is created using the ... Read More

Advertisements