Last active
February 8, 2018 07:30
-
-
Save yudium/527b7a95c1822f8734c73bc901db61fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println('AWAL'); | |
function tampilkan(nomor, nama_calon, b_bawaan, pekerjaan) | |
{ | |
println(nomor + '.'); | |
println('Pak saya ingin melamar anak bapak: ' + nama_calon); | |
println('Saya sudah bawa ' + b_bawaan + ' buat bapak.'); | |
println('Saya sudah punya pekerjaan pak, ' + pekerjaan); | |
} | |
tampilkan(1, 'susanti', 'martabak', 'software developer'); | |
tampilkan(2, 'ajeng', 'durian', 'web designer'); | |
// INI ERROR | |
// berusaha mengakses variabel nama calon dari luar | |
println('ISI VARIABEL NAMA_CALON = ' + nama_calon); | |
println('AKHIR'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment