You are on page 1of 1

<html>

<head>
<title>Ejemplos8</title>
</head>
<body>
<h1>HOLA MUNDO CRUEL</h1>
<script type="text/javascript">
//Declaramos la función CON PARÁMETROS

function sumar (numero) {var total=numero+2;


alert(total);}
function sumar2 (numero1, numero2) {var total=numero1+numero2;
alert(total);}
//Y ahora usarla cuando interese
sumar(5);
var dato=10;
sumar(dato);

</script>
</body>
</html>

You might also like

  • CSS 37
    CSS 37
    Document1 page
    CSS 37
    Santiponce Emprende
    No ratings yet
  • CSS 39
    CSS 39
    Document1 page
    CSS 39
    Santiponce Emprende
    No ratings yet
  • CSS 41
    CSS 41
    Document2 pages
    CSS 41
    Santiponce Emprende
    No ratings yet
  • CSS 38
    CSS 38
    Document1 page
    CSS 38
    Santiponce Emprende
    No ratings yet
  • CSS 31
    CSS 31
    Document1 page
    CSS 31
    Santiponce Emprende
    No ratings yet
  • CSS 30
    CSS 30
    Document1 page
    CSS 30
    Santiponce Emprende
    No ratings yet
  • CSS 35
    CSS 35
    Document1 page
    CSS 35
    Santiponce Emprende
    No ratings yet
  • CSS 22
    CSS 22
    Document1 page
    CSS 22
    Santiponce Emprende
    No ratings yet
  • CSS 15
    CSS 15
    Document1 page
    CSS 15
    Santiponce Emprende
    No ratings yet
  • CSS 28
    CSS 28
    Document1 page
    CSS 28
    Santiponce Emprende
    No ratings yet
  • CSS 26
    CSS 26
    Document1 page
    CSS 26
    Santiponce Emprende
    No ratings yet
  • CSS 26
    CSS 26
    Document1 page
    CSS 26
    Santiponce Emprende
    No ratings yet
  • CSS 29
    CSS 29
    Document1 page
    CSS 29
    Santiponce Emprende
    No ratings yet
  • CSS 23
    CSS 23
    Document1 page
    CSS 23
    Santiponce Emprende
    No ratings yet
  • CSS 25
    CSS 25
    Document1 page
    CSS 25
    Santiponce Emprende
    No ratings yet
  • CSS 20
    CSS 20
    Document1 page
    CSS 20
    Santiponce Emprende
    No ratings yet
  • CSS 21
    CSS 21
    Document1 page
    CSS 21
    Santiponce Emprende
    No ratings yet
  • CSS 17
    CSS 17
    Document1 page
    CSS 17
    Santiponce Emprende
    No ratings yet
  • CSS 19
    CSS 19
    Document1 page
    CSS 19
    Santiponce Emprende
    No ratings yet
  • CSS 13
    CSS 13
    Document1 page
    CSS 13
    Santiponce Emprende
    No ratings yet
  • CSS 16
    CSS 16
    Document2 pages
    CSS 16
    Santiponce Emprende
    No ratings yet
  • CSS 18
    CSS 18
    Document1 page
    CSS 18
    Santiponce Emprende
    No ratings yet
  • CSS 14
    CSS 14
    Document1 page
    CSS 14
    Santiponce Emprende
    No ratings yet
  • Css 6
    Css 6
    Document1 page
    Css 6
    Santiponce Emprende
    No ratings yet
  • Css 5
    Css 5
    Document1 page
    Css 5
    Santiponce Emprende
    0% (1)
  • CSS 11
    CSS 11
    Document1 page
    CSS 11
    Santiponce Emprende
    No ratings yet
  • CSS 12
    CSS 12
    Document1 page
    CSS 12
    Santiponce Emprende
    No ratings yet
  • Css 7
    Css 7
    Document1 page
    Css 7
    Santiponce Emprende
    No ratings yet
  • Css 7
    Css 7
    Document1 page
    Css 7
    Santiponce Emprende
    No ratings yet
  • Css 4
    Css 4
    Document1 page
    Css 4
    Santiponce Emprende
    No ratings yet