suma y doble con fat arrow

In this example below you will see how to do a suma y doble con fat arrow with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 0utKast, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 0utKast ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>suma y doble con fat arrow</title>
  
  
  
  
  
</head>

<body>

  <body>
<p>Suma y dobla.</p>
<p id="demo"></p>
<script>
var sumaYDoble = function (x, y) {
    var sum = x + y;
    return sum * 2;
};
document.getElementById("demo").innerHTML = sumaYDoble(6,5);
  
</script>
</body>
  
  

</body>

</html>

Comments