Abhinaya

Abhinaya

39 Articles Published

Articles by Abhinaya

Page 2 of 4

What is onerror() Method in JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 2K+ Views

The onerror event handler was the first feature to facilitate error handling in JavaScript. The error event is fired on the window object whenever an exception occurs on the page. Syntax window.onerror = function(message, source, lineno, colno, error) { // Handle the error return true; // Prevents default browser error handling }; Parameters The onerror handler receives five parameters: message: Error message source: URL of the script where error occurred lineno: Line ...

Read More

Create a small-caps effect for CSS

Abhinaya
Abhinaya
Updated on 15-Mar-2026 567 Views

To create a small-caps effect in CSS, use the font-variant property with the value small-caps. This transforms lowercase letters into smaller uppercase letters while keeping original uppercase letters at their normal size. Syntax font-variant: small-caps; Example Here's how to apply the small-caps effect to text: .small-caps { font-variant: small-caps; font-size: 18px; ...

Read More

How to set the bottom padding of an element with JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 755 Views

To set the bottom padding of an element in JavaScript, use the paddingBottom property of the element's style object. This property allows you to dynamically modify the spacing between an element's content and its bottom border. Syntax element.style.paddingBottom = "value"; Where value can be specified in pixels (px), percentages (%), em units, or other valid CSS length units. Example Here's how to set the bottom padding of an element dynamically: #box { ...

Read More

How to arguments object with Rest, default, and destructured parameters in JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 237 Views

JavaScript ES6 introduced powerful parameter features that modernize how functions handle arguments. This article explores default parameters, rest parameters, and destructuring assignment - three essential concepts for writing cleaner, more flexible JavaScript functions. Default Parameters Default parameters allow you to initialize function parameters with default values when no value or undefined is passed. This eliminates the need for manual parameter checking and makes functions more robust. Syntax function functionName(param1, param2 = defaultValue) { // function body } Example ...

Read More

What is Bitwise XOR Assignment Operator (^=) in JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 367 Views

The Bitwise XOR Assignment Operator (^=) performs an XOR (exclusive OR) operation between the left and right operands, then assigns the result back to the left operand. It's a shorthand for a = a ^ b. Syntax variable ^= value; // Equivalent to: variable = variable ^ value; How XOR Works XOR returns 1 when bits are different, 0 when they're the same: let a = 2; // Binary: 10 let b = 3; // Binary: 11 console.log("Before: a =", a, "b =", b); a ^= b; ...

Read More

How to check whether a string contains a substring in JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 1K+ Views

JavaScript provides us with different methods to check whether a string contains a substring or not. In this article, we use the following three methods for this purpose: String search() method String indexOf() method String includes() method Let's explore in detail each method. Using String search() Method The string search() method can be used to search a text (using regular expression) in a string. It matches the string against a regular expression and returns the index (position) of the first match. It returns -1 if no match is found. It's case-sensitive. The ...

Read More

What is the difference between JavaScript frameworks?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 267 Views

JavaScript frameworks provide pre-written code libraries that simplify web development by offering reusable components, structure, and functionality. Each framework has different strengths and is suited for specific use cases. What are JavaScript Frameworks? JavaScript frameworks are collections of pre-written JavaScript code that provide a foundation for building web applications. They offer standardized ways to organize code, handle common tasks, and create interactive user interfaces. Popular JavaScript Frameworks Overview Here's how some major JavaScript frameworks compare across key features: ...

Read More

Missing SAP Java Connector libraries JCo- librfc32.dll, com.sap.utils and com.sap.mw

Abhinaya
Abhinaya
Updated on 13-Mar-2026 318 Views

Please note that all these library files − librfc32.dll, com.sap.utils and com.sap.mw come under JCo 2.1. With release of JCo 3.0, its classes were also relocated from packages com.sap.mw.jco.* to com.sap.conn.jco.* For running with SAP JCo 3.0, you need these files at runtime − sapjco3.jar and sapjco3.dll (on Windows). You can follow below procedure for installation of JCo files: Installing JCo on Windows Platform In Windows OS, you have to copy sapjco3.jar file into ITDI_HOME/jars/3rdparty/others. Copy the ...

Read More

I don't want configuration information to be transferred with the database in SAP ABAP

Abhinaya
Abhinaya
Updated on 13-Mar-2026 186 Views

The straight answer to this is a big NO. This is one of the most common places of error in the SAP environment. When you create a clone of your production in the form of QA with most of the things as it is from production, you need to make sure that any action in QA after cloning doesn't have any implication or effect on actual production. Why Configuration Transfer is Problematic Transferring configuration information directly with the database can lead to several critical issues − System interference − QA actions might accidentally ...

Read More

How to overwrite a specific chunk in a byte array using java?

Abhinaya
Abhinaya
Updated on 11-Mar-2026 2K+ Views

Java provides a ByteBuffer class which allows you to wrap an array into a byte buffer using its wrap() method. Once you did that you can replace the contents of the buffer using the position(): To select the starting position and, put(): To replace the data methods:Exampleimport java.nio.ByteBuffer; public class OverwriteChunkOfByteArray {    public static void main(String args[]) {       String str = "Hello how are you what are you doing";       byte[] byteArray = str.getBytes();       System.out.println("Contents of the byet array :: ");             for(int i = 0; i

Read More
Showing 11–20 of 39 articles
Advertisements