Sai Subramanyam has Published 102 Articles

How to set the font size of text with JavaScript?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

698 Views

To set the font size, use the fontSize property in JavaScript. You can try to run the following code to set the font size of the text with JavaScript − Example Live Demo Heading 1 ... Read More

What is the difference between a definition and a declaration in C++?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

1K+ Views

In C++, declaration and definition are often confused. A declaration means (in C) that you are telling the compiler about type, size and in case of function declaration, type and size of its parameters of any variable, or user-defined type or function in your program. No space is reserved in ... Read More

How can I use a SELECT statement as an argument of MySQL IF() function?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

368 Views

It is quite possible to use a SELECT statement as the first argument of MySQL IF() function. To make it understand, consider the data as follows from table ‘Students’. mysql> Select * from Students; +----+-----------+-----------+----------+----------------+ | id | Name | Country | ... Read More

When should I use an Inline script and when to use external JavaScript file?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

1K+ Views

To enhance performance, try to keep JavaScript external. The separate code makes it easier for web browsers to cache. However, use inline scripts only when you’re making single page websites. Still, it's better to use external code i.e. external JavaScript. To place JavaScript in external file create an external JavaScript ... Read More

How to offset an outline and draw it beyond the border edge with JavaScript?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

147 Views

To offset an outline, use the outlineOffsetproperty. It allows you to draw the outline beyond the border edge. You can try to run the following code to offset an outline and draw it beyond the border edge with JavaScript. Example Live Demo ... Read More

In the query [SELECT column1, column2 FROM table_name WHERE condition; ] which clause among ‘SELECT’, ‘WHERE’ and ‘FROM’ is evaluated in the last by the database server and why?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

335 Views

As we know that SELECT clause is used to show all the rows and columns hence SELECT clause is evaluated in the last by the database server.

How changes, made in the current transaction, can be permanently eliminated from MySQL database?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

60 Views

We can use ROLLBACK command to eliminate the changes, made in a current transaction, permanently from MySQL database. Suppose if we run some DML statements and it updates some data objects, then ROLLBACK command will eliminate these updates permanently from the database. Example Suppose we have the following data in ... Read More

Which MySQL function can be used to append values of a column with single quotes?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

61 Views

MySQL QUOTE() function can be used to append values of a column with single quotes. For this, we must have to pass column name as the argument of QUOTE() function. Data from ‘Student’ table is used to demonstrate it as follows Example mysql> Select Name, ID, QUOTE(Subject)AS Subject from ... Read More

What will happen when [50,100] is converted to Number in JavaScript?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

64 Views

Use the Number() method in JavaScript to convert to Number. You can try to run the following code to learn how to convert [50, 100] to Number in JavaScript − Example Live Demo Convert [50,100] to Number var myVal = [50,100]; document.write("Number: " + Number(myVal));

What does the method hashCode(obj[] a) do in java?

Sai Subramanyam

Sai Subramanyam

Updated on 30-Jul-2019 22:30:21

81 Views

The hashCode(Object[]) method of the java.util.Arrays class returns a hash code based on the contents of the specified array. If the array contains other arrays of elements, the hash code is based on their identities rather than their contents. For any two arrays a and b such that Arrays.equals(a, b), ... Read More

Previous 1 ... 4 5 6 7 8 ... 11 Next
Advertisements