SHARE
TWEET

praktikum3d.html

Muhammad_Muslim Sep 14th, 2017 (edited) 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>mengenal fungsi javascript</title>
  5. </head>
  6. <body>
  7.  
  8. <script languange="javascript">
  9. function kali(){
  10.     c=a*b;
  11.     return c;
  12. }
  13. function bagi(x,y){
  14.     z=x/y;
  15.     return z;
  16. }
  17. var a=3;
  18. var b=0;
  19.     document.write('Hasil dari',a,'*',b,'=',kali());
  20.     document.write('<br><br>');
  21.     document.write('Hasil dari',b,'/',a,'=',bagi(b,a));
  22. </script>
  23.  
  24. </body>
  25. </html>
RAW Paste Data
Top