1) Comma (,) as separator While declaration multiple variables and providing multiple arguments in a function, comma works as a separator. Example: int a,b,c; In this statement,comma is a separator and tells to the compiler that these (a, b, and c) are three different variables. 2) C...
Punctuators, also known as separators, are the tokens that serve different purposes based on the context in which they are used. Some punctuators are used as operators, some are used to demarcate a portion of the program and so on. The various punctuators def...
Some regard this as a bug in JS, so the good practice is to create and use a variable called self. var c = { name: 'The c object', log: function() { var self = this; self.name = 'Updated c object'; console.log(self); var setname = function(newname) { self.name = new...
An interface is a way of describing what classes should do, without specifying how they should do it. A class can implement more than one interface. In Java, an interface is not a class but a set of requirements for the class that we want to conform to t