What is the purpose of the var keyword in JavaScript?

Daniol Thomas
Published on 29-Jan-2018 10:41:30
Like many other programming languages, JavaScript has variables. Variables can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container. The var keyword is used to declare variables in JavaScript.Before you use a variable in a ... Read More

How to use variable number of arguments to function in JavaScript?

Krantik Chavan
Published on 29-Jan-2018 10:36:44
To use a variable number of arguments to function, use the arguments object.ExampleYou can try to run the following code to implement arguments to a function in JavaScriptLive Demo<html>    <body>       <script>          function functionArgument(val1, val2, val3)  {             ... Read More

How to draw a polyline in HTML5 SVG?

karthikeya Boyini
Published on 23-Jan-2018 16:42:41
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

How to draw a polygon in HTML5 SVG?

Sharon Christine
Published on 23-Jan-2018 16:35:51
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

How to create a rectangle with rounded corners in HTML5 SVG?

Swarali Sree
Published on 23-Jan-2018 16:05:55
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 rectangle in HTML ... Read More

Explain Inheritance vs Instantiation for Python classes.

Rajendra Dharmkar
Published on 29-Jan-2018 13:09:37
InheritanceBeing an Object Oriented language, Python supports inheritance, it even supports multiple inheritance. Classes can inherit from other classes. A class can inherit attributes and behaviour methods from another class, called the superclass. A class which inherits from a superclass is called a subclass, also called heir class or child ... Read More

How to draw ellipses on top of each other in HTML5 SVG?

Samual Sam
Published on 23-Jan-2018 15:12:33
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 an ellipse in HTML ... Read More

How to draw an ellipse in HTML5 SVG?

Sai Subramanyam
Published on 23-Jan-2018 15:07:56
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 an ellipse in HTML ... Read More

How we can extend multiple Python classes in inheritance?

Rajendra Dharmkar
Published on 29-Jan-2018 12:24:55
As per Python documentation ‘super’ can help in extending multiple python classes in inheritance.  It returns a proxy object that delegates method calls to a parent or sibling class of type. This is useful for accessing inherited methods that have been overridden in a class. The search order is same ... Read More

Would you recommend to define multiple Python classes in a single file?

Rajendra Dharmkar
Published on 29-Jan-2018 12:11:53
Python is not class-based exclusively - the basic unit of code decomposition in Python is the module. A module is a distinct thing that may have one or two dozen closely-related classes. Modules may as well contain functions along with classes. In Python there is rule of  one module=one file.In ... Read More
Advertisements