Govinda Sai has Published 82 Answers

Why do we use "use strict" in JavaScript?

Govinda Sai

Govinda Sai

Updated on 20-Apr-2022 12:30:05

The “use strict” is a directive, which is a literal expression. It was introduced in JavaScript 1.8.5. As the name suggests, “use strict” indicates that the code is to be executed in strict mode.Benefits of using “use strict”It’s easier to write "secure" JavaScript codes.It changes previously accepted "bad syntax" into ... Read More

How to draw a star in HTML5 SVG?

Govinda Sai

Govinda Sai

Updated on 16-Dec-2021 09:34:31

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG.To draw a polygon in HTML ... Read More

Listing down various options for input values in HTML5

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 07:21:22

The HTML tag specifies set of options for element. You can try to run the following code to list options for input values in HTML5 −Example           HTML Datalist Tag                                                                                   Try to add any of the tutorial name mentioned above.    

What's the difference between "STL" and "C++ Standard Library"?

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 06:31:32

The Standard Template Library (STL) is a software library for the C++ programming language that influenced many parts of the C++ Standard Library. It provides four components called algorithms, containers, functions, and iterators. Note that the term "STL" or "Standard Template Library" does not show up anywhere in the ISO ... Read More

Passing two dimensional array to a C++ function

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 06:00:18

C++ does not allow to pass an entire array as an argument to a function. However, You can pass a pointer to an array by specifying the array's name without an index. There are three ways to pass a 2D array to a function −Specify the size of columns of ... Read More

What is The Rule of Three with reference to C++?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 13:40:50

The Rule of three is a rule of thumb when using C++. This is kind of a good practice rule that says that If your class needs any ofa copy constructor, an assignment operator, or a destructor, defined explicitly, then it is likely to need all three of them.Why is ... Read More

How to set line breaking rules for non-CJK scripts in JavaScript?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 11:37:20

Use the wordbreak property in JavaScript to set line breaking rules for non-CJK scripts. The following are CJK scripts: C for Chinese, J for Japanese, K for Korean.ExampleYou can try to run the following code to learn how to implement wordbreak property −           ... Read More

How to represent the source code of an object with JavaScript Arrays?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 08:28:59

JavaScript array toSource() method returns a string representing the source code of the array. This method is supported by Mozilla.ExampleYou can try to run the following code to learn how to represent the source code of an object with JavaScript Arrays −           JavaScript Array toSource ... Read More

How to delete the duplicate values stored in reverse order from MySQL table?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 12:35:57

To understand this concept, we are using the data from table ‘Details_city’ as follows −mysql> Select * from details_city; +--------+--------+ | City1  | City2  | +--------+--------+ | Delhi  | Nagpur | | Delhi  | Mumbai | | Nagpur | Delhi  | | Katak  | Delhi  | | Delhi  | Katak  | ... Read More

How can SELECT, without reference to any table, be used to calculate expression in MySQL?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 11:49:51

With the help of following MySQL statement, we can use SELECT to calculate the expression −SELECT expression;The above statement is having no reference to any table. Followings are some examples −mysql> Select 10 DIV 5; +----------+ | 10 DIV 5 | +----------+ |        2 | +----------+ 1 ... Read More

1 2 3 4 5 6 7 ... 9 Next
Advertisements