Created
September 26, 2021 02:12
-
-
Save koalicioous/bba2b57205c92d90cabdff8b468b3e7f 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
function sapaTeman(nama: string) { | |
console.log(`Selamat Pagi, ${nama}!`) | |
} | |
sapaTeman('Anwar') | |
// Hasil: Selamat pagi, Anwar! | |
sapaTeman(2021) | |
// Error: argunent '2021' is not assignable to parameter of type 'string' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment