Abdul Rawoof has Published 35 Articles

Advantages and Disadvantages of JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 12-Sep-2023 01:20:55

27K+ Views

JavaScript might be a client-side scripting language, inferring that the client's browser handles ASCII text file processing rather than an online server. With the aid of JavaScript, this can load the webpage without contacting the primary server. For instance, a JavaScript function might verify that all the required fields are ... Read More

How to read and write a file using Javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2023 12:04:13

60K+ Views

The read and write operations in a file can be done by using some commands. But the module which is required to perform these operations is to be imported. The required module is 'fs' which is called as File System module in JavaScript. Write operation on a file After the ... Read More

How to get image data url in JavaScript?

Abdul Rawoof

Abdul Rawoof

Updated on 19-Jul-2023 14:51:58

4K+ Views

To obtain the canvas's image data URL, we can use the canvas object's toDataURL() method, which converts the canvas drawing into a 64 bit encoded PNG URL. You can pass image/jpeg as the first argument to the toDataURL() method if you want the image data URL to be in jpeg ... Read More

Window.onload vs onDocumentReady in javascript

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 12:37:51

4K+ Views

In JavaScript, window.onload and document.ready() are the methods used when the page is being loaded. Window.onload The window.onload method gets executed after the entire web page is loaded. This includes all the elements related with DOM like the head tag, tittle tag and all the other tags including the style ... Read More

Difference between .extend() / .assign() and .merge() in Lodash library.

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 12:31:17

879 Views

The Lodash library is in JavaScript, which works on the top of ‘_.js’. It can be used while working with arrays, strings, objects, numbers, etc. The assign() method This function is used to copy the original object into a new object. The difference in this and the spread operator is ... Read More

How to duplicate Javascript object properties in another object?

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 12:10:12

1K+ 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. In JavaScript, the objects can be copied to other by ... Read More

What is the use of .stack property in JavaScript?

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 12:02:25

435 Views

The Stack property in JavaScript is used to store and keep track of the errors and saves the information such as the type of the error, where the error is raised and the reason of the error. The path of the origin of the error is also stored in the ... Read More

Get div height with vanilla JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 11:58:51

11K+ Views

The HTML element is represented by the Div Object in the HTML DOM. When styling other HTML elements with CSS or with JavaScript, this tag is used to indicate the container for those elements. The default container for flow content in HTML is the div element. It doesn't affect ... Read More

Difference between test () and exec () methods in Javascript

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 11:55:12

4K+ Views

The RegExp.prototype.test() and RegExp.prototype.exec() methods are the methods in JavaScript used to handle regular expressions. In addition to these two JavaScript includes a number of built-in methods for manipulating and processing text using regular expressions. What are regular expressions? Regular expressions are patterns that are used to search for character ... Read More

Difference between console.dir and console.log in javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 02-Sep-2022 11:43:02

3K+ Views

In JavaScript, dir() and log() are the methods of console object. Console object provides access to the browser’s debugging console. The console.dir() method The console.dir() method output the list of object properties of a specified object in the console to the user. It recognizes the object just as an object ... Read More

Advertisements