What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 21:20:42
what is prototype in javascript
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2022-02-02 20:01:08
rating javascript
function RatingStar(fiveStar, fourStar, threeStar, twoStar, oneStar) { this.fiveStar = fiveStar; this.fourStar = fourStar; this.threeStar = threeStar; this.twoStar = twoStar; this.oneStar = oneStar; this.rating = 0; } RatingStar.prototype.setRatin... Add solution -
Javascript 2021-11-20 23:22:11
month name array javascript
'use strict'; (function(d){ var mL = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var mS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'N... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5