Johar Ali has Published 58 Articles

Creating and using packages in Java

Johar Ali

Johar Ali

Updated on 17-Jun-2020 07:37:10

While creating a package, you should choose a name for the package and include a package statement along with that name at the top of every source file that contains the classes, interfaces, enumerations, and annotation types that you want to include in the package. The package statement should be the ... Read More

How to print the content of JavaScript object?

Johar Ali

Johar Ali

Updated on 16-Jun-2020 13:50:35

To print content of JavaScript object, you can try to run the following code. Here, the object is created using the new keyword −ExampleLive Demo                          var dept = new Object();          dept.employee ... Read More

How to create objects in JavaScript?

Johar Ali

Johar Ali

Updated on 16-Jun-2020 13:31:51

To create objects, the new operator is used to create an instance of an object. The new operator is followed by the constructor method.A constructor is a function that creates and initializes an object. JavaScript provides a special constructor function called Object() to build the object. The return value of ... Read More

How to change Firefox Browser theme?

Johar Ali

Johar Ali

Updated on 15-Jun-2020 08:44:18

Firefox web browser is widely used and loved by many users around the world. Well, you can easily change the Firefox Browser theme and make it look more awesome.Let’s see how to reach the Firefox theme section and change the theme −Open Firefox MenuGo to the following section and click ... Read More

How to block a website in your web browsers (Chrome and Internet Explorer)

Johar Ali

Johar Ali

Updated on 15-Jun-2020 08:39:06

To block a website on any of the web browsers like Google Chrome, Firefox, and Internet Explorer in a Windows system is quite easy. Follow the below-given steps to block a website −Open Notepad as an administrator i.e. Run as Administrator.Now, after opening Notepad, click on File, then click Open ... Read More

Sending a table from UI5 application to ABAP Function Module

Johar Ali

Johar Ali

Updated on 15-Jun-2020 06:38:18

This can be done using an OData service that accepts POST request from your UI5 application and writes data to a database table. While implementing OData service, you have to call ABAP Backend Class method.You have to remember that all application and classes are instantiated for processing and will end ... Read More

What is decrement (--) operator in JavaScript?

Johar Ali

Johar Ali

Updated on 15-Jun-2020 05:39:59

The decrement operator decreases an integer value by one. Here’s an example where the value of a is decremented twice using decrement operator twice −ExampleLive Demo                    

What is the difference between: var functionName = function() {} and function functionName() {} in Javascript

Johar Ali

Johar Ali

Updated on 15-Jun-2020 05:25:58

functionDisplayOne is a function expression, however, functionDisplayTwo is a function declaration. It is defined as soon as its surrounding function is executed.Both the ways are used to declare functions in JavaScript and functionDisplayOne is an anonymous function.Here’s the function expression −functionDisplayOne(); var functionDisplayOne = function() {    console.log("Hello!"); };The following ... Read More

Why would a jQuery variable start with a dollar sign?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 13:14:27

When you will begin working about jQuery, you will get to know about the usage of the $ sign. A $ sign is used to define jQuery.jQuery variables begin with $ to distinguish them from a standard JavaScript object. Also, it is a convention. jQuery selectors start with the dollar ... Read More

Why JavaScript 'var null' throw an error but 'var undefined' doesn't?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 11:42:53

The web browser throws an error for “var null” because it is a reserved identifier.You cannot use the following literals as identifiers in ECMAScript −null frue falseundefined A property with no definition. It is not known and not a reserved identifier. Its type is undefined.nullIt is known and a reserved identifier. ... Read More

Advertisements