Get Euler's Constant Value in JavaScript

Kumar Varma
Updated on 18-Jun-2020 08:25:25

872 Views

To get Euler’s constant value in JavaScript, use the Math E property. This is a Euler's constant and the base of natural logarithms, approximately 2.718.ExampleYou can try to run the following code to get Euler’s constant value in JavaScript −Live Demo           JavaScript Math E Property                        var property_value = Math.E          document.write("Property Value is :" + property_value);           OutputProperty Value is :2.718281828459045

Work with Bootstrap 4 Float Right Class

Alex Onsman
Updated on 18-Jun-2020 08:23:35

652 Views

If you want to float element on the right on different screen sizes, then use the float-*-right class i.e.The following is for small, medium, large and extra large devices −   This text is on the right (on small screen).   This text is on the right (on medium screen).   This text is on the right (on large screen).   This text is on the right (on extra large screen) Let us see the complete example to float element in right on different screen sizes −ExampleLive Demo   Bootstrap Example   ... Read More

Get the Difference Between Two Arrays in JavaScript

Fendadis John
Updated on 18-Jun-2020 08:23:34

320 Views

To get the difference between two arrays in JavaScript, try to run the following code. Here, we’re using some method like split(), indexOf(), sort(), etc to get the elements, which aren’t the same in both the arrays &mnus;ExampleLive Demo           JavaScript Dates                        function arrDifference (arr1, arr2) {             var arr = [];             arr1 = arr1.toString().split(', ').map(Number);             arr2 = arr2.toString().split(', ').map(Number);             // ... Read More

Set Less Important Content with Bootstrap 4 Card

Alex Onsman
Updated on 18-Jun-2020 08:21:57

138 Views

To set less important stuff in Bootstrap, use the card class with the bg-secondary contextual class as shown below −Set the card body as well using the card-body class −   Fitness Trackers Let us see how to set a card with less important content −ExampleLive Demo       Bootstrap Example                             Fitness Products           Fitness Trackers               Heart Rate Monitors      

Reverse the Order of a JavaScript Array

Abhinanda Shri
Updated on 18-Jun-2020 08:18:32

334 Views

To reverse the order of a JavaScript array, use the JavaScript array() method. JavaScript array reverse() method reverses the elements of an array. The first array element becomes the last and the last becomes the first.ExampleYou can try to run the following code to reverse the order of a JavaScript array −           JavaScript Array reverse Method                        var arr = c.reverse();          document.write("Reversed array is : " + arr );          

Creating a New Table in SAP HANA

SAP Expert
Updated on 18-Jun-2020 08:16:45

3K+ Views

New tables can be created using the two methods given below −Using SQL editorUsing GUI optionThe new table can be created using SQL Create Table statement –Create column Table Test1 (    ID INTEGER,    NAME VARCHAR(10),    PRIMARY KEY (ID) );When you run this SQL query, you get a message like this:The statement 'Create column Table Test1 ( ID INTEGER, NAME VARCHAR(10), PRIMARY KEY (ID) )' successfully executed in 5 ms 136 μs (server processing time: 4 ms 432 μs) - Rows Affected: 0To create a table using GUI, you need to right-click on any schema name -> New ... Read More

Factorial Program in Java Without Using Recursion

Vikyath Ram
Updated on 18-Jun-2020 08:09:48

2K+ Views

Following is the required program.ExampleLive Demopublic class Tester {    static int factorial(int n) {       if (n == 0)          return 1;       else          return (n * factorial(n - 1));    }    public static void main(String args[]) {       int i, fact = 1;       int number = 5;       fact = factorial(number);       System.out.println(number + "! = " + fact);    } }Output5! = 120

Opening SAP HANA Cockpit from HANA Studio

Anil SAP Gupta
Updated on 18-Jun-2020 08:06:28

2K+ Views

SAP HANA Cockpit with Fiori-based Launchpad shows the content in the form of tiles arranged in groups. Using these tiles, you can access individual applications and can also access app-specific data for immediate review.You can also perform a drill on these tiles to see the detailed information about specific applications.Following roles are required to open and access tile-based SAP HANA Cockpit − sap.hana.admin.roles:: Monitoring or sap.hana.admin.roles:: AdministratorYou can also open SAP HANA Cockpit via HANA Studio. Navigate on HANA system -> Configuration and Monitoring -> Open SAP HANA Cockpit.You can also open HANA Cockpit in an offline mode using a ... Read More

Remove a Particular Character from a String

Manikanth Mani
Updated on 18-Jun-2020 08:01:46

355 Views

Following example shows how to remove a character from a particular position from a string with the help of removeCharAt(string, position) method.ExampleLive Demopublic class Sample {    public static void main(String args[]) {       String str = "this is Java";       System.out.println(removeCharAt(str, 3));    }    public static String removeCharAt(String s, int pos) {       return s.substring(0, pos) + s.substring(pos + 1);    } }Outputthis is Java

Check Tables and Schema in SAP HANA

SAP ABAP Expert
Updated on 18-Jun-2020 08:00:36

9K+ Views

When you add a HANA system in HANA Studio, you can see different tabs under system pane. Each pane has different object types of HANA system.To see the list of all schema and tables, you need to navigate to Catalog tab.Other available tabs in HANA Studio includes:BackupCatalogProvisioningContentSecurityYou can check under table type- if a table is row store or column store. On right top corner, it is mentioned.New tables can be created using the two methods given below −Using SQL editorUsing GUI optionThe new table can be created using SQL Create Table statement −Create column Table Test1 (    ID ... Read More

Advertisements