SlideShare une entreprise Scribd logo
1  sur  21
CoffeeScript




Mike Silvis
Hungry Academy Class of 2012
CoffeeScript




   Mike Silvis
   Hungry Academy Class of 2012


@MIKESILVIS       MIKESILVIS   MIKE.SILVIS   MIKE-SILVIS   MIKE.SILVIS@
RAILS ASSET PIPELINE
var cubes, list, math, num, number,
  opposite, race, square,
   __slice = [].slice;

 number = 42;




 JAVASCRIPT                                                   COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,
  opposite, race, square,
   __slice = [].slice;

 number = 42;




 JAVASCRIPT                                                   COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                          # Assignment:
  opposite, race, square,                                     number   = 42
   __slice = [].slice;                                        opposite = true

 number = 42;




 JAVASCRIPT                                                   COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                          # Assignment:
  opposite, race, square,                                     number   = 42
   __slice = [].slice;                                        opposite = true

 number = 42;

 if (opposite) {
   number = -42;
 }




 JAVASCRIPT                                                   COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                          # Assignment:
  opposite, race, square,                                     number   = 42
   __slice = [].slice;                                        opposite = true

 number = 42;

 if (opposite) {
   number = -42;
 }




 JAVASCRIPT                                                   COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite




 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite


square = function(x) {
   return x * x;
};




 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite


square = function(x) {
   return x * x;
};




 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite


square = function(x) {
   return x * x;                                              # Functions:
};                                                            square = (x) -> x * x




 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite


square = function(x) {
   return x * x;                                              # Functions:
};                                                            square = (x) -> x * x


math = {
   root: Math.sqrt,
   square: square,
   cube: function(x) {
     return x * square(x);
   }
};


 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                             # Assignment:
  opposite, race, square,                                        number   = 42
   __slice = [].slice;                                           opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                              # Conditions:
 }                                                            number = -42 if opposite


square = function(x) {
   return x * x;                                              # Functions:
};                                                            square = (x) -> x * x


math = {
   root: Math.sqrt,
   square: square,
   cube: function(x) {
     return x * square(x);
   }
};


 JAVASCRIPT                                                      COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
var cubes, list, math, num, number,                               # Assignment:
  opposite, race, square,                                          number   = 42
   __slice = [].slice;                                             opposite = true

 number = 42;

 if (opposite) {
   number = -42;                                                # Conditions:
 }                                                              number = -42 if opposite


square = function(x) {
   return x * x;                                                # Functions:
};                                                              square = (x) -> x * x


math = {
   root: Math.sqrt,
                                                              # Objects:
   square: square,
                                                              math =
   cube: function(x) {
                                                                root:    Math.sqrt
     return x * square(x);
                                                                square: square
   }
                                                                cube:    (x) -> x * square x
};


 JAVASCRIPT                                                         COFFEESCRIPT

COFFEESCRIPT IS A CLEAN JAVASCRIPT
IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
alert "What about using jQuery?"
jQuery(function() {
  return $("p").click(function() {
    return $(this).slideUp();
  });
});


   JQUERY CLICK FUNCTION




JQUERY IS ALL THE SAME!!!
ONLY CLEANER!
jQuery(function() {                  jQuery ->
  return $("p").click(function() {       $("p").click ->
    return $(this).slideUp();              $(this).slideUp()
  });
});


   JQUERY CLICK FUNCTION                COFFEE CLICK




JQUERY IS ALL THE SAME!!!
ONLY CLEANER!
jQuery ->
  coffee:
    $(".points").click ->
      alert Math.floor((Math.random()*100)+1) + " Points achieved!"




COFFEE IN YOUR VIEWS!
WITH SLIM
HTTP://JS2COFFEE.ORG/




USEFUL RESOURCES
HTTP://COFFEESCRIPT.ORG/




COFFEESCRIPT.ORG

Contenu connexe

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Coffee Script

  • 2. CoffeeScript Mike Silvis Hungry Academy Class of 2012 @MIKESILVIS MIKESILVIS MIKE.SILVIS MIKE-SILVIS MIKE.SILVIS@
  • 4. var cubes, list, math, num, number, opposite, race, square, __slice = [].slice; number = 42; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 5. var cubes, list, math, num, number, opposite, race, square, __slice = [].slice; number = 42; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 6. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 7. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; } JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 8. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; } JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 9. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 10. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; }; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 11. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; }; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 12. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; # Functions: }; square = (x) -> x * x JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 13. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; # Functions: }; square = (x) -> x * x math = { root: Math.sqrt, square: square, cube: function(x) { return x * square(x); } }; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 14. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; # Functions: }; square = (x) -> x * x math = { root: Math.sqrt, square: square, cube: function(x) { return x * square(x); } }; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 15. var cubes, list, math, num, number, # Assignment: opposite, race, square, number = 42 __slice = [].slice; opposite = true number = 42; if (opposite) { number = -42; # Conditions: } number = -42 if opposite square = function(x) { return x * x; # Functions: }; square = (x) -> x * x math = { root: Math.sqrt, # Objects: square: square, math = cube: function(x) { root: Math.sqrt return x * square(x); square: square } cube: (x) -> x * square x }; JAVASCRIPT COFFEESCRIPT COFFEESCRIPT IS A CLEAN JAVASCRIPT IT TAKES JAVASCRIPT AND TURNS IT INTO MORE RUBY LIKE SYNTAX
  • 16. alert "What about using jQuery?"
  • 17. jQuery(function() { return $("p").click(function() { return $(this).slideUp(); }); }); JQUERY CLICK FUNCTION JQUERY IS ALL THE SAME!!! ONLY CLEANER!
  • 18. jQuery(function() { jQuery -> return $("p").click(function() { $("p").click -> return $(this).slideUp(); $(this).slideUp() }); }); JQUERY CLICK FUNCTION COFFEE CLICK JQUERY IS ALL THE SAME!!! ONLY CLEANER!
  • 19. jQuery -> coffee: $(".points").click -> alert Math.floor((Math.random()*100)+1) + " Points achieved!" COFFEE IN YOUR VIEWS! WITH SLIM

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n