Ali has Published 41 Articles

What are the differences between “untyped” & “dynamically typed” programming languages?

Ali

Ali

Updated on 13-Jun-2020 12:51:09

2K+ Views

Dynamically typedDynamically typed language is called so because the type is associated with run-time values. You don’t have to specify types every time. As the name suggests, variables' types are dynamic, means even after you set a variable to a type you can change it.Some dynamically typed languages include Python, ... Read More

What are Variable Naming Conventions in JavaScript

Ali

Ali

Updated on 13-Jun-2020 09:28:57

1K+ Views

While naming your variables in JavaScript, keep some rules in mind. The following are the variable naming conventions in JavaScript −You should not use any of the JavaScript reserved keywords as a variable name. These keywords are mentioned in the next section. For example, break or boolean variable names are not valid.JavaScript ... Read More

What happens when you do not declare a variable in JavaScript?

Ali

Ali

Updated on 13-Jun-2020 09:23:31

133 Views

Yes, this can be done. When you have a global scope, you can use a variable without declaring it. The following “no var” variable “points” will look at the scope chain, wince var keyword isn’t use −                    var rank = ... Read More

What is the use of declaring variables in JavaScript?

Ali

Ali

Updated on 13-Jun-2020 08:27:46

83 Views

Before you use a variable in a JavaScript program, you must declare it. Variables 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.Variables are declared with the var keyword as follows.     You ... Read More

How to declare numbers in JavaScript?

Ali

Ali

Updated on 13-Jun-2020 07:43:55

4K+ Views

JavaScript is untyped language. This means that a JavaScript variable can hold a value of any data type. To declare variables in JavaScript, you need to use the var keyword. Whether it is a number or string, use the var keyword for declaration.Here’s how you can declare numbers in JavaScript −var ... Read More

How and why to avoid global variables in JavaScript?

Ali

Ali

Updated on 13-Jun-2020 07:10:36

1K+ Views

Avoid global variables or minimize the usage of global variables in JavaScript. This is because global variables are easily overwritten by other scripts. Global Variables are not bad and not even a security concern, but it shouldn’t overwrite values of another variable.On the usage of more global variables in our ... Read More

Should I always put my JavaScript file in the head tag of my HTML file?

Ali

Ali

Updated on 13-Jun-2020 06:14:47

338 Views

You can place the tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the tag or tag.It’s good for performance to add JavaScript in element. Here’s an example to add under … −   ... Read More

Including third party libraries in SAPUI5 Project

Ali

Ali

Updated on 26-Feb-2020 06:20:56

233 Views

You would rather use it like below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Note that jQuery does not have any security-related documentation on their site, but they are known to be aware of security and usually reacting quickly in case security issues are found within their library.SAPUI5 includes different versions of jQuery together with their own ... Read More

Page build in HTML and wanted to load into JS view in SAPUI5 application.

Ali

Ali

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

366 Views

The most commonly used way of doing this is to embed the HTML page as an iframe. Here is the example.new sap.ui.core.HTML({    preferDOM: true,    content: "" });It can also be loaded using AJAX call or display using sap.ui.core.HTML, but it will depend upon your HTML page.Read More

Create database view in SAP ABAP

Ali

Ali

Updated on 25-Feb-2020 11:00:13

652 Views

In ABAP, you can make use of Function modules - DDIF_VIEW_PUT and DDIF_VIEW_ACTIVATE for view activation. All table parameters should be defined correctly otherwise it can result in an error in the creation process.DDIF_VIEW_PUT − Interface for writing a view in the ABAP Dictionary.You can refer to below link for ... Read More

Advertisements