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
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
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
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
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 );
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
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
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
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
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
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP