Web Development Articles - Page 568 of 1049

Get div height with vanilla JavaScript

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

13K+ 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 the content or layout until it is CSS-styled in some way. The height of the div element can be known in many ways. These ways are discussed in this article. Using offsetHeight The offsetHeight is a property which returns the height of the element in pixels. Syntax The syntax of ... Read More

Difference between Agile Testing and Waterfall Testing.

Kiran Kumar Panigrahi
Updated on 01-Dec-2022 07:48:45

2K+ Views

In the computer software testing world, there are two major software testing techniques namely Agile Testing and Waterfall Testing. Agile testing is more flexible and malleable, while waterfall testing is more structured and rigid. There are several other important differences between agile testing and waterfall testing which we will discuss in this article. But before going into the differences, let's start with some basics of agile testing and waterfall testing. What is Agile Testing? Agile testing is a software testing mechanism involving all team members where main owners are subject matter experts termed as Product Owners and testers as Quality ... Read More

Difference between AngularJS and Angular.

Mahesh Parahar
Updated on 28-Nov-2019 11:06:02

3K+ Views

AngularJSAngularJS, is a javascript based open-source front-end framework and is mainly used to develop single page applications on web. It enriches the static HTML to dynamic HTML. It extends existing HTML by providing directives. Its latest stable version is 1.7.7AngularAngular is alternative to AngularJS and it is a major version upgrade to Angular JS. Angular release starts from 2.0. It is very fast as compared to AngularJS. It has modular design, have angular CLI and easy to develop. Angular latest stable version is 9.Following are the important differences between AngularJS and Angular.Sr. No.KeyAngularJSAngular1ArchitectureAngularJS works on MVC, Model View Controller Design. ... Read More

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

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

4K+ 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 and outputs its properties. console.dir shows all properties of a DOM element and can display only one object. Syntax The below syntax is for console.dir method. console.dir(object) Example Following is an example of the console.dir() method in JavaScript − console.dir(673563); console.dir("Welcome to Tutorialspoint"); console.dir(76325 * 476); The console.log() ... Read More

How to get image data url in JavaScript?

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

6K+ 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 format. You can control the image quality for a jpeg image by passing a number between 0 and 1 as the second argument to the toDataURL() method. Any images drawn onto the canvas must be hosted on a web server with the same domain as the code executing it, according ... Read More

Different techniques for copying objects in JavaScript

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

370 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 objects in any language namely: deep copy, and shallow copy. Shallow Copy In this technique an object is copied as little as possible. For suppose if you copy a collection using this technique the structure of the collection is copied to the destination, not the elements. Example Following is an ... Read More

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

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

1K+ 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 when nested objects are present and if assign() is used to copy the object, then the nested object will not change and the other variables of the object can be changed. There are two parameters to the assign() function. The first parameter is curly braces {} which is used to ... Read More

What is the use of .stack property in JavaScript?

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

611 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 stacks in JavaScript. Stack is the error class property in JavaScript, which is also used to store the functions that are called, the order of the functions called too. The format of the error shown is as first, in the first line the type of the error will be displayed ... Read More

Difference between FTP and TFTP

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 13:57:02

5K+ Views

FTP is used for copying files from one host to another host location. FTP works on Port 20 and 21. Port 20 is used for data and Port 21 is used for connection control.TFTP is lighter than FTP and is used when a file transfer functionality is needed without FTP features. It works on Port 69 and follows the UDP protocol.Read through this article to find out more about FTP and TFTP and how they are different from each other.What is FTP?FTP stands for File Transfer Protocol. It is a client/server protocol for sending files to and from a host ... Read More

Benefits of Using Modern Learning Apps

sudhir sharma
Updated on 22-Nov-2019 07:27:48

303 Views

Advancements in technology have lead to a newer and more efficient way of learning. The usage of these modern learning techniques are gaining popularity. Modern learning methods used by teachers in e-learning are educational websites, educational applications, learning games, ebooks and virtual teaching courses.Using these modern learning methods, students can learn interactively and at their own pace. These learning apps and videos are used to transform teaching experience. It is more eco friendly technical and is more interactive as compared to traditional once which used chalk-board and pen-paper.Applications that are downloadable create an interactive environment for students to learn with ... Read More

Advertisements