Skip to content

Instantly share code, notes, and snippets.

@Slackluky
Created September 17, 2019 02:47
Show Gist options
  • Save Slackluky/cbfe659a6c9d8d1bdd947664abe78a58 to your computer and use it in GitHub Desktop.
Save Slackluky/cbfe659a6c9d8d1bdd947664abe78a58 to your computer and use it in GitHub Desktop.
fungsi untuk menjumlahkan 2 input
function add(param1, param2) { // membuat fungsi "add" dan parameter ("param1" dan "param2")
return param1 + param2; // menghasilkan output dari penjumlahan param 1 dan param 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment