×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Pascual Muñoz
Added: Jun 18, 2017 8:34 PM
Modified: Jun 18, 2017 8:43 PM
Views: 11
  1. Son funciones equivalentes a las normales pero con la flecha =>
  2.  
  3. function normalFunction(param) {
  4.     return returnVal;
  5. }
  6.  
  7. let arrowFunction = param => returnVal;
  8.  
  9. function normalFunction(paramA, paramB) {
  10.     return paramA + paramB;
  11. }
  12.  
  13. let arrowFunction = (paramA, paramB) => paramA + paramB;
  14.