Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function points(){
- var po = 0;
- return function(right){
- if(right){
- po++;
- console.log('Your score is 1 point more! Now it\'s ' + po); // I added this part.
- console.log('*^*^*^*^*^*^*'); // also this.
- } else {
- console.log('Your score is still ' + po + '.'); // and this.
- console.log('*^*^*^*^*^*^*'); // and this :)
- }
- return po;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement