Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Sai Subramanyam
Page 3 of 7
Depth-first search traversal in Javascript
DFS visits the child vertices before visiting the sibling vertices; that is, it traverses the depth of any particular path before exploring its breadth. A stack (often the program's call stack via recursion) is generally used when implementing the algorithm. Following is how a DFS works − Visit the adjacent unvisited vertex. Mark it as visited. Display it. Push it in a stack. If no adjacent vertex is found, pop up a vertex from the stack. (It will pop up all the vertices from the stack, which do not ...
Read MoreHow to set all the border left properties in one declaration with JavaScript?
The borderLeft property in JavaScript allows you to set all the left border properties (width, style, and color) in a single declaration. This is more convenient than setting borderLeftWidth, borderLeftStyle, and borderLeftColor individually. Syntax element.style.borderLeft = "width style color"; Parameters width: Border thickness (e.g., "thin", "medium", "thick", or pixel values like "5px") style: Border style (e.g., "solid", "dashed", "dotted", "double") color: Border color (e.g., color names, hex codes, rgb values) Example ...
Read MoreHow to show if...else statement using a flowchart in JavaScript?
The if statement is the fundamental control statement that allows JavaScript to make decisions and execute statements conditionally. Let's see how to show if...else statement using flowchart in JavaScript. If...Else Statement Flowchart Start Condition? True False ...
Read MoreHow to show a while loop using a flow chart in JavaScript?
The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true. Once the expression becomes false, the loop terminates. Let's see how to show while loop using flowchart in JavaScript. While Loop Flowchart The flowchart below illustrates the execution flow of a while loop: START ...
Read MoreHow to unset a JavaScript variable?
To unset a variable in JavaScript, you can set it to undefined or use the delete operator for object properties. However, the approach depends on how the variable was declared. Setting Variable to undefined The most common way to unset a variable is by assigning undefined to it: let userName = "John Doe"; console.log("Before:", userName); // Unset the variable userName = undefined; console.log("After:", userName); Before: John Doe After: undefined Using delete Operator The delete operator works only on object properties, not on variables declared with var, let, or const: ...
Read MoreHow are variables allocated memory in JavaScript?
JavaScript handling of the variable is different from other programming languages C, C++., Java, etc. Variables in JavaScript can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container. Before you use a variable in a JavaScript program, you must declare it. Variables are declared with the var keyword as follows. var rank; var points; Storing a value in a variable is called variable initialization. You can do variable initialization at the ...
Read MoreWhen should I use an Inline script and when to use external JavaScript file?
When building web applications, you can include JavaScript code either inline within HTML or as external files. Each approach has specific use cases and performance implications. External JavaScript Files (Recommended) External JavaScript files offer better performance and maintainability. Browsers can cache external files, reducing load times for subsequent visits. Create a JavaScript file with .js extension and link it using the src attribute: // new.js function display() { alert("Hello World!"); } Include the external file in your HTML: ...
Read MoreWhat does language attribute do in tag in Javascript?
The language attribute in the HTML tag was used to specify the scripting language being used, typically "javascript". However, this attribute is now deprecated and should not be used in modern web development. Historical Usage In older HTML versions, the language attribute was commonly used to indicate the scripting language: Hello World! Why It's Deprecated ...
Read MoreConvert CHAR to HEX in SAP system and functions
When working with SAP systems, converting character data to hexadecimal format is a common requirement. However, developers often encounter exceptions when using standard conversion functions due to data type compatibility issues. Understanding CHAR to HEX Conversion Issues When attempting to use standard conversion functions, you may encounter exceptions. Based on system dump analysis, only character type data objects are compatible with most conversion functions. This limitation requires using specific function modules designed for data type conversion. Using CRM_EI_KB_CONV_DEC_TO_HEX Function Module For ECC 6.0 environments, you can utilize the function module 'CRM_EI_KB_CONV_DEC_TO_HEX' which converts decimal values to ...
Read MoreRecovery database SBO-COMMON in SAP Business One
In SAP Business One, SBO-Common is a system database that serves as a central repository for managing and tracking your company databases. While normal day-to-day business functions operate entirely within the company database, SBO-Common handles the administrative and structural aspects of your SAP Business One environment. The SBO-Common database acts as a master database that maintains critical system information and ensures proper coordination between different company databases in your SAP Business One installation. What SBO-Common Database Contains The SBO-Common database stores essential system information − DB List − Complete list of databases ...
Read More