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

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
Copyright 0utKast ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

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


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