Govinda Sai

Govinda Sai

45 Articles Published

Articles by Govinda Sai

Page 2 of 5

How to force Chrome's script debugger to reload JavaScript?

Govinda Sai
Govinda Sai
Updated on 15-Mar-2026 4K+ Views

To force Google Chrome's script debugger to reload JavaScript files, you have several methods depending on your debugging needs. This is essential when cached files prevent you from seeing your latest code changes. Method 1: Using Dev Tools Sources Panel The most direct approach is through Chrome's Developer Tools: Open Dev Tools (F12 or right-click → Inspect) Click on the Sources tab Find your JavaScript file in the file tree Right-click the file and select "Reload" or "Refresh" Method 2: Hard Refresh ...

Read More

What is the role of ctrlKey Mouse Event in JavaScript?

Govinda Sai
Govinda Sai
Updated on 15-Mar-2026 282 Views

The ctrlKey mouse event property is a boolean value that indicates whether the CTRL key was pressed when a mouse event occurred. This property is available on all mouse events like click, mousedown, mouseup, etc. Syntax event.ctrlKey Return Value true - if the CTRL key was pressed during the mouse event false - if the CTRL key was not pressed during the mouse event Example The following example demonstrates how to detect if the CTRL key is pressed when clicking on an element: ...

Read More

How to draw a star in HTML5 SVG?

Govinda Sai
Govinda Sai
Updated on 15-Mar-2026 9K+ Views

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML. Most web browsers can display SVG just like they can display PNG, GIF, and JPG. To draw a star in HTML5 SVG, we use the element. The key is to set the correct x and y coordinates for each point of the star, alternating between outer points (tips) and inner points (valleys). 5-Point Star using SVG Polygon ...

Read More

What is the lifetime of JavaScript variables?

Govinda Sai
Govinda Sai
Updated on 15-Mar-2026 1K+ Views

The lifetime of a JavaScript variable refers to how long it exists in memory, from creation to destruction. Variable lifetime depends on scope and the execution context where it's declared. Local Variable Lifetime Local variables are created when a function is called and destroyed when the function completes execution. They exist only within their function scope. function checkScope() { var localVar = "I'm local"; // Created when function starts console.log(localVar); // localVar is destroyed when function ends } checkScope(); ...

Read More

List of Best JavaScript Frameworks?

Govinda Sai
Govinda Sai
Updated on 15-Mar-2026 286 Views

JavaScript frameworks simplify web development by providing pre-built components, architecture patterns, and tooling. Here's a comprehensive list of the most popular and widely-used JavaScript frameworks for modern web development. Frontend JavaScript Frameworks React React is a component-based JavaScript library developed by Facebook for building user interfaces. It uses a virtual DOM for efficient rendering and supports JSX syntax for writing HTML-like code in JavaScript. // Simple React component example function Welcome(props) { return Hello, {props.name}!; } // Usage const element = ; Vue.js Vue.js is a progressive JavaScript framework ...

Read More

nParsing IDoc files to extract information from SAP system

Govinda Sai
Govinda Sai
Updated on 13-Mar-2026 930 Views

There are few third party libraries which can be used to perform this task however they involve some cost. The best way here is to use an SAP Connector. SAP Connectors are available for almost all prevalent programming languages like Java, C#, Python. You can program against these connectors and read data from IDoc. You can do many things with these connectors from reading data to converting them to flat files for further usage. Using Java Connector for IDoc Parsing I have used ...

Read More

If a number is read as a String, how to Count the no of times the highest number repeated in the string?n a. Ex: 2 4 3 4 2 4 0 -> (3)

Govinda Sai
Govinda Sai
Updated on 11-Mar-2026 173 Views

To do so, Trim the given string and split it using the split() method (Removing the empty spaces in-between).Create an integer array and in loop convert each element of the string array to an integer using Integer.parseInt() method and assign it to the respective element of the integer array.Sort the obtained integer array, since this method sorts the elements of the array in ascending order the last element will be the maximum of the array. Create an integer variable count with initial value 0. Compare each element of the array with the maximum value, each time a match occurs increment the count. The final value ...

Read More

Multilevel inheritance in Java

Govinda Sai
Govinda Sai
Updated on 10-Dec-2024 90K+ Views

Multilevel inheritance - A class inherits properties from a class which again has inherits properties. Example class Shape {    public void display() {       System.out.println("Inside display");    } } class Rectangle extends Shape {    public void area() {       System.out.println("Inside area");    } } class Cube extends Rectangle {    public void volume() {       System.out.println("Inside volume");    } } public class Tester {    public static void main(String[] arguments) {       Cube cube = new Cube();       cube.display();       cube.area();       cube.volume();    } } Output Inside display Inside area Inside volume Read Also: Java Inheritance

Read More

What's the difference between "STL" and "C++ Standard Library"?

Govinda Sai
Govinda Sai
Updated on 24-Jun-2020 2K+ Views

The Standard Template Library (STL) is a software library for the C++ programming language that influenced many parts of the C++ Standard Library. It provides four components called algorithms, containers, functions, and iterators. Note that the term "STL" or "Standard Template Library" does not show up anywhere in the ISO 14882 C++ standard. So referring to the C++ standard library as STL is wrong, ie, STL and C++ Standard Library are 2 different things with the former being the subset of the latter.The STL consists ofContainersThe STL contains sequence containers and associative containers. Containers are objects that store data. The ...

Read More

What is The Rule of Three with reference to C++?

Govinda Sai
Govinda Sai
Updated on 23-Jun-2020 207 Views

The Rule of three is a rule of thumb when using C++. This is kind of a good practice rule that says that If your class needs any ofa copy constructor, an assignment operator, or a destructor, defined explicitly, then it is likely to need all three of them.Why is this? Its because, if your class requires any of the above, it is managing dynamically allocated resources and would likely be needing the other to successfully achieve that. For example, if you require an assignment operator, you would be creating copies of objects currently being copied by reference, hence allocating ...

Read More
Showing 11–20 of 45 articles
Advertisements