Johar Ali has Published 48 Articles

What is the difference between Declaring and Initializing a variable in JavaScript?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 08:39:29

395 Views

The following is stated about declaration and initialization of a variable in ECMAScript specification −A var statement declares variables that are scoped to the running execution context’s VariableEnvironment. Var variables are created when their containing Lexical Environment is instantiated and are initialized to undefined when created. [...] A variable defined ... Read More

What is the purpose of new Boolean() in JavaScript?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 08:21:10

196 Views

The Boolean object represents two values, either "true" or "false". If value parameter is omitted or is 0, -0, null, false, NaN, undefined, or the empty string (""), the object has an initial value of false.The new Boolean() is used to create a new object. Use the following syntax to ... Read More

What are the differences between inline JavaScript and External file?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 06:51:11

387 Views

The following are the difference between inline JavaScript and external file −External scriptsThe browser stores the external script once it is downloaded for the first time. If it is to be referenced again, then no additional download is needed.This reduces download time and size.The async and defer attributes have an ... Read More

How does the browser identify inline JavaScripts?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 06:44:28

248 Views

Let’s say the following line we have in our HTML −Here the browser identifies inline JavaScript by detecting onclick, even when tag wasn’t available.The following are some of the suggestions for using inline JavaScripts −You should consider inline script elements such as ...) if the script only to be ... Read More

How to handle when JavaScript is turned off?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 06:37:30

71 Views

Nowadays, almost every web browser supports JavaScript. If it is turned off, you can use tag. To let users know about non-JavaScript web browsers, use the tag. The HTML tag is used to handle the browsers, which do recognize tag but do not support scripting. This ... Read More

Where should the Google Analytics Tracking Code be placed?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 06:27:36

62 Views

When integrating your website with Google Analytics, add the Tracking Code in your code. This will allow Google Analytics to track the page views and provide other analytics.Copy the code and place it just before closing tag i.e. in your website code. When you will integrate, the following ... Read More

How to extract data from SAP using .NET provider.

Johar Ali

Johar Ali

Updated on 26-Feb-2020 10:18:56

740 Views

To extract using SSIS, you need to have access to backend system. You can use .NET connector and write a Windows application that extracts data from SAP system using Function Module.For more details on how to connect SAP using .NET connector, you can refer this blog- https://blogs.sap.com/2013/02/14/connecting-to-sap-with-nco-3/With use of BAPI’s ... Read More

Passing multiple parameters in SAP BO Webi report

Johar Ali

Johar Ali

Updated on 26-Feb-2020 06:11:12

778 Views

An open document URL is constructed as follow −http://:/OpenDocument/opendoc/?&&...&With use of SAP Business Objects API, you can query each prompt- single value or multiple value. When you build URL, you may have to include parameter types.You can join parameters with the ampersand (&) and you shouldn’t use space with & ... Read More

How to delete the actives while running a loop in the internal table?

Johar Ali

Johar Ali

Updated on 25-Feb-2020 11:08:33

126 Views

DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of row subsequently in the loop. The best is to use CONTINUE as soon as you perform the deletion. I will suggest avoiding “DELETE lt_itab INDEX sy-tabix” ... Read More

What is a switch case statement in Java and how to use it?

Johar Ali

Johar Ali

Updated on 25-Feb-2020 09:34:41

298 Views

A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.Syntaxswitch(expression) {    case value :       // Statements       break;    case value : ... Read More

Advertisements