Srinivas Gorla has Published 75 Articles

How to find numbers in an array that are greater than, less than, or equal to a value in java?

Srinivas Gorla

Srinivas Gorla

Updated on 16-Jun-2020 09:36:58

3K+ Views

You can find numbers in an array that are greater than, less than, or equal to a value as:ExampleLive Demopublic class GreaterOrLess {    public static void main(String args[]) {       int value = 65;       int[] myArray = {41, 52, 63, 74, 85, 96 }; ... Read More

Which is the best tutorial site to learn jQuery?

Srinivas Gorla

Srinivas Gorla

Updated on 16-Jun-2020 07:42:22

73 Views

jQuery is a fast and concise JavaScript Library created by a John Resig in 2006 with a nice motto − Write less, do more.jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.Here is the list of important core features supported by jQuery:DOM manipulation − ... Read More

How to define a function in JavaScript?

Srinivas Gorla

Srinivas Gorla

Updated on 15-Jun-2020 12:04:16

140 Views

The most common way to define a function in JavaScript is by using the “function” keyword, followed by a unique function name, a list of parameters (that might be empty), and a statement block surrounded by curly braces.SyntaxHere’s the syntax −     Try the following example. It defines a ... Read More

How to use an image in a webpage?

Srinivas Gorla

Srinivas Gorla

Updated on 15-Jun-2020 08:24:47

802 Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The alt is the alternate text attribute, which is text that is visible when the image fails to load.The following are the attributes −AttributeDescriptionAltThe alternate text for ... Read More

Execute a script when the window's history changes in HTML?

Srinivas Gorla

Srinivas Gorla

Updated on 30-May-2020 22:47:57

98 Views

When the window’s history change, the onpopstate event triggers. You can add it like this −Example           This is demo text    

What is the role of scrollX property in JavaScript?

Srinivas Gorla

Srinivas Gorla

Updated on 20-May-2020 11:01:25

419 Views

The scrollX property in JavaScript works the same as pageXoffset property. If you want to get the pixels the document scrolled to from the upper left corner of the window, then use the scrollX property for horizontal pixels.ExampleYou can try to run the following code to learn how to work ... Read More

What will happen if a semicolon is misplaced in JavaScript?

Srinivas Gorla

Srinivas Gorla

Updated on 20-May-2020 09:04:03

130 Views

If a semicolon is misplaced in JavaScript, then it may lead to misleading results. Let’s see an example, wherein the if statement condition is false, but due to misplaced semi-colon, the value gets printed.Example                    var val1 = 10; ... Read More

Integrate node.js with SAP HANA system

Srinivas Gorla

Srinivas Gorla

Updated on 12-Mar-2020 12:31:12

249 Views

You can insert data into HANA database using node.js. You can also connect to SAP HANA database via JDBC driver.To connect via JDBC, you need to install JDBC driver ngdbc.jar. This driver is installed as part of SAP HANA client installation. Ngdbc.jar file is available at this location −C:\Program Files\sap\hdbclient\ ... Read More

How to style multi-line conditions in 'if' statements in Python?

Srinivas Gorla

Srinivas Gorla

Updated on 05-Mar-2020 07:43:05

1K+ Views

There are many ways you can style multiple if conditions. You don't need to use 4 spaces on your second conditional line. So you can use something like &minusl;if (cond1 == 'val1' and cond2 == 'val2' and     cond3 == 'val3' and cond4 == 'val4'):# Actual codeYou can also ... Read More

How to specify the kind of text track in HTML?

Srinivas Gorla

Srinivas Gorla

Updated on 03-Mar-2020 09:59:14

68 Views

Use the kind attribute in HTML to specify the kind of text track in HTML. For example, you can set the kind as subtitles for subtitle files.ExampleYou can try to run the following code to implement the kind attribute −                                                            Your browser does not support the video element.          

Advertisements