Skip to content

Instantly share code, notes, and snippets.

@thesabbir
Last active August 29, 2015 14:05
Show Gist options
  • Save thesabbir/d3323e04e6e0349ce1f6 to your computer and use it in GitHub Desktop.
Save thesabbir/d3323e04e6e0349ce1f6 to your computer and use it in GitHub Desktop.
/*
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);
@shemul
Copy link

shemul commented Sep 2, 2014

LOL .. ! :v :v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment