Akshaya Akki

Akshaya Akki

25 Articles Published

Articles by Akshaya Akki

25 articles

How to create a strikethrough text using JavaScript?

Akshaya Akki
Akshaya Akki
Updated on 15-Mar-2026 5K+ Views

To create a strikethrough text with JavaScript, you can use several methods. The legacy strike() method wraps text in deprecated tags, while modern approaches use CSS styling for better compatibility. Using the Legacy strike() Method The strike() method creates strikethrough text by wrapping it in tags. However, this method is deprecated and not recommended for new projects. JavaScript String strike() Method var str = "Demo Text"; ...

Read More

Match any string containing a sequence of two to three p's.

Akshaya Akki
Akshaya Akki
Updated on 15-Mar-2026 145 Views

To match any string containing a sequence of two to three p's with JavaScript RegExp, use the p{2, 3} quantifier. This pattern matches exactly 2 or 3 consecutive occurrences of the letter "p". Syntax /p{2, 3}/flags Where {2, 3} specifies the minimum (2) and maximum (3) number of consecutive p's to match. Example: Matching 2-3 Consecutive p's JavaScript Regular Expression var str = "apple pepper hippopotamus p programming"; ...

Read More

What is the usage of onpagehide event in JavaScript?

Akshaya Akki
Akshaya Akki
Updated on 15-Mar-2026 505 Views

The onpagehide event triggers in JavaScript when a user leaves the page and navigates away. This occurs during page refresh, clicking links, closing the browser tab, or navigating to another page. Syntax // HTML attribute // JavaScript event listener window.addEventListener('pagehide', function(event) { // Code to execute }); Example: Basic Usage Here's how to implement the onpagehide event using an HTML attribute: Navigate away from this page to see the alert! ...

Read More

How to set src to the img tag in HTML from another domain?

Akshaya Akki
Akshaya Akki
Updated on 15-Mar-2026 3K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load. With HTML, you can add the image source as another domain URL by setting the src attribute to point to an external domain. Syntax Key Attributes Attribute Description src The URL of the image (can be ...

Read More

What is the difference between getter and setter in JavaScript?

Akshaya Akki
Akshaya Akki
Updated on 15-Mar-2026 1K+ Views

In JavaScript, getters and setters are special methods that allow you to define how properties are accessed and modified in objects. They provide a way to control property access while maintaining a clean interface. Getter A getter is a method that gets executed when a property is accessed. It uses the get keyword and allows you to define custom logic for retrieving a property value. The getter appears as a regular property but internally calls a function. Setter A setter is a method that gets executed when a property is assigned a value. It uses the ...

Read More

Executing an inner join over RFC on database tables in SAP system

Akshaya Akki
Akshaya Akki
Updated on 13-Mar-2026 701 Views

You can execute inner joins over RFC on database tables in SAP systems using several approaches. You can do this by creating your own function module that can perform selection as per the requirement. Methods to Perform Inner Joins Method 1: Custom Function Module Create a custom function module in SE80 or SE37 that performs the inner join logic and returns the required dataset. This approach gives you full control over the join operations and performance optimization. FUNCTION Z_CUSTOM_INNER_JOIN. SELECT a.field1, b.field2 FROM table1 AS a ...

Read More

Programmer to be an SAP Functional Consultant - HR or MM

Akshaya Akki
Akshaya Akki
Updated on 13-Mar-2026 257 Views

SAP HR is an older module with limited new implementations across companies. SAP HR encompasses several sub-modules including Payroll, Personal Administration, and Time Management. If you pursue a course in SAP HR, it would primarily provide conceptual knowledge, but practical implementation in companies can be challenging without hands-on experience. For SAP Module functional consultant positions, prior experience in the relevant field is highly recommended. Additionally, as a programmer, daily tasks like generating test data, testing reports, and writing specifications may not align with your technical interests. Recommended SAP ...

Read More

Existing RFC to load table data, and to get list of tables and list of BAPI's in SAP

Akshaya Akki
Akshaya Akki
Updated on 13-Mar-2026 1K+ Views

I am not sure that there exists a BAPI to see list of all BAPI's in SAP system. You can use the Function module RFC_FUNCTION_SEARCH to search for function modules starting with BAPI*. Getting List of BAPIs You can call Function Module BAPI_MONITOR_GETLIST to get list of all available BAPI's. This function module provides comprehensive information about Business Application Programming Interfaces available in your SAP system − CALL FUNCTION 'BAPI_MONITOR_GETLIST' EXPORTING OBJECTTYPE = p_ojtpe SHOW_RELEASE = ...

Read More

Function pointers in Java

Akshaya Akki
Akshaya Akki
Updated on 11-Mar-2026 2K+ Views

From Java 8 onwards, the lambda expression is introduced which acts as function pointers.Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. Lambda expression facilitates functional programming and simplifies the development a lot.SyntaxA lambda expression is characterized by the following syntax.parameter -> expression bodyFollowing are the important characteristics of a lambda expression.Optional type declaration − No need to declare the type of a parameter. The compiler can inference the same from the value of the parameter.Optional parenthesis around parameter − No need to declare a single parameter in parenthesis. For multiple ...

Read More

Write a Java program to capitalize each word in the string?

Akshaya Akki
Akshaya Akki
Updated on 11-Mar-2026 2K+ Views

You can capitalize words in a string using the toUpperCase() method of the String class. This method converts the contents of the current string to Upper case letters.Examplepublic class StringToUpperCaseEmp {    public static void main(String[] args) {       String str = "string abc touppercase ";       String strUpper = str.toUpperCase();       System.out.println("Original String: " + str);       System.out.println("String changed to upper case: " + strUpper);    } }OutputOriginal String: string abc touppercase String changed to upper case: STRING ABC TOUPPERCASE

Read More
Showing 1–10 of 25 articles
« Prev 1 2 3 Next »
Advertisements