HTML 11_Fungsi dengan argumen yang mengembalikan suatu nilai

<html>
<head>
<script type="text/javascript">
function total(numberA,numberB)
{
return numberA + numberB
}
</script>
</head>
<body>
<script type="text/javascript">
document.write(total(2,3))
</script>
<p>The script in the body section calls a function with two arguments, 2 and3.</p>
<p>The function returns the sum of these two arguments.</p>
</body>
</html>
Category: 0 komentar

0 komentar:

Posting Komentar