Ankitha Reddy has Published 102 Answers

With JavaScript RegExp search an octal number character.

Ankitha Reddy
Published on 26-Feb-2018 06:49:22
To find an octal number character with JavaScript Regular Expression, use the following. Add the octal number here − \xxx You can try to run the following code to find an octal number character. It searches for octal number 123 i.e S − Example Live Demo ... Read More

What are the three types of errors I can expect in my JavaScript script?

Ankitha Reddy
Published on 23-Feb-2018 12:04:14
The following are the three types of errors you can expect in JavaScript − Syntax Errors Syntax errors also called parsing errors, occur at compile time in traditional programming languages and at interpret time in JavaScript. When a syntax error occurs in JavaScript, only the code contained within the same ... Read More

How to debug obfuscated JavaScript?

Ankitha Reddy
Published on 23-Feb-2018 10:36:14
To debug obfuscated JavaScript code, you need to use a JavaScript formatter or beautifier. Go to the following link to beautify JavaScript, In the left section, add your obfuscated JavaScript code and click Beautify as shown below, On clicking, you can see Beautified JavaScript code in the right section.

How to use comments to prevent JavaScript Execution?

Ankitha Reddy
Published on 23-Feb-2018 09:41:47
If you want another code while working in the same code document, then use comments. Comment the previous code and add the alternative code to test it. After the testing completes, uncomment the previous code. In this way, you can test both the codes. While using comments follow the below ... Read More

What is function overloading in JavaScript?

Ankitha Reddy
Published on 23-Feb-2018 07:44:11
JavaScript does not support Function Overloading. The following shows function overloading − function funcONE(x, y) { return x*y; } function funcONE(z) { return z; } The above will not show an error, but you won't get desired results. On calling, // ... Read More

How to write PHP script to delete data from an existing MySQL table?

Ankitha Reddy
Published on 22-Feb-2018 11:04:45
We can use the SQL DELETE command with or without the WHERE CLAUSE into the PHP function – mysql_query(). This function will execute the SQL command in a similar way it is executed at the mysql> prompt. To illustrate it we are having the following example − Example In this ... Read More

Which PHP function is used to create a MySQL table?

Ankitha Reddy
Published on 22-Feb-2018 10:18:17
PHP uses a mysql_query function to create a MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows − Syntax bool mysql_query( sql, connection ); Followings are the parameters used in this function − Sr.No ... Read More

How can we use MySQL UNION operator on datasets?

Ankitha Reddy
Published on 22-Feb-2018 08:23:21
Basically, MySQL UNION operator is used to combine the result sets of 2 or more SELECT statements. It removes duplicate rows between the various SELECT statements. Each SELECT statement within the UNION operator must have the same number of fields in the result sets within similar data types. Its syntax ... Read More

How can we count a number of unique values in a column in MySQL table?

Ankitha Reddy
Published on 22-Feb-2018 07:11:03
By using DISTINCT keyword along with column name as the argument of COUNT() function we can count the number of unique values in a column. The syntax is as follows − SELECT COUNT(DISTINCT Col_name) FROM table_name; Example Suppose we have the following table mysql> Select * from ... Read More

What is the use of ORDER BY clause in MySQL?

Ankitha Reddy
Published on 22-Feb-2018 05:47:02
MySQL ORDER BY clause is used to specify the sorting on the result of a query. The keyword ORDER BY must be followed by the name of the column on which we want to sort. For example, we want to sort the following table named ‘ratelist’ on the basis of ... Read More
Advertisements