Last active
August 29, 2015 14:05
-
-
Save thesabbir/d3323e04e6e0349ce1f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Solaimani Tabij Factory | |
Author : Sabbir | |
*/ | |
/* The main constructor */ | |
var SolaimainiKoboz = function(karzoKarita, mulloFerot, level) { | |
this.karzoKarita = karzoKarita; | |
this.dam = 101 * level; | |
this.mulloFerot = mulloFerot; | |
} | |
/* Slogan Maker Function*/ | |
SolaimainiKoboz.prototype.slogan = function() { | |
var sl = "It's " + this.karzoKarita + "% efficient and"; | |
if(this.mulloFerot === true) { | |
sl = sl + " moneyback guranteed!"; | |
} | |
sl = sl + " Price is only " + this.dam + ' BDT.'; | |
return sl; | |
} | |
/* Creating New Instance */ | |
var jineDhorle = new SolaimainiKoboz(100, true, 5); | |
/* Using Slogan Function For Making Biggapons */ | |
var biggapon = jineDhorle.slogan(); | |
/* Broadcasting Biggapon */ | |
alert(biggapon); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LOL .. ! :v :v