What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-18 02:00:18
keyword new js
ObjMaker = function() {this.a = 'first';}; // ObjMaker is just a function, there's nothing special about it that makes // it a constructor. ObjMaker.prototype.b = 'second'; // like all functions, ObjMaker has an accessible prototype property that // we... Add solution -
Other 2021-11-12 06:45:16
new js
ObjMaker = function() {this.a = 'first';}; // ObjMaker is just a function, there's nothing special about it that makes // it a constructor. ObjMaker.prototype.b = 'second'; // like all functions, ObjMaker has an accessible prototype property that // we... Add solution -
Javascript 2021-11-09 22:53:20
steam roll array javascript
function steamrollArray(arr) { return arr .toString() .replace(",,", ",") // "1,2,,3" => "1,2,3" .split(",") // ['1','2','3'] .map(function(v) { if (v == "[object Object]&qu... Add solution -
Javascript 2021-11-04 16:04:10
new keyword in js
ObjMaker = function() {this.a = 'first';}; // ObjMaker is just a function, there's nothing special about it that makes // it a constructor. ObjMaker.prototype.b = 'second'; // like all functions, ObjMaker has an accessible prototype property that // we... Add solution -
Java 2021-09-14 03:21:02
super keyword in java
ObjMaker = function() {this.a = 'first';}; // ObjMaker is just a function, there's nothing special about it that makes // it a constructor. ObjMaker.prototype.b = 'second'; // like all functions, ObjMaker has an accessible prototype property that // we... Add solution -
Javascript 2021-09-10 23:08:01
weakset in es6
/* WeakSet() is as same as Set() Similarities: 1.WeakSet() has all methods that Set() has. 2.WeakSet() Donot contain Duplicate Values as Set(). Differences: 3.WeakSet Values are Non Enumerated 4.WeakSet Value can only be Empty Objects */ var... Add solution