This file contains hidden or 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
| // Constructor | |
| function Sale(price) { | |
| this.price = price || 10 | |
| } | |
| Sale.prototype.getPrice = function () { | |
| return this.price; | |
| }; | |
| Sale.decorators = {}; | |
| Sale.decorators.statetax = { |
This file contains hidden or 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
| var data = { | |
| first_name: "Vladimir", | |
| last_name: "Sljubura", | |
| age: "unknown", | |
| username: "Slju" | |
| }; | |
| validator.config = { | |
| first_name: 'required', | |
| age: 'numeric', |
This file contains hidden or 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
| function pdv(OPERACIJA) { | |
| return function (broj) { | |
| if ( OPERACIJA === '-' ) { | |
| return broj - 20; | |
| } else if( OPERACIJA === '+' ) { | |
| return broj + 20; | |
| } else { | |
| throw 'Lose uneti parametri!'; | |
| } | |
| } |
OlderNewer