Untitled
Anonymous
Plain Text
09/30/2025 10:10 AM
322 B
13
Indexable
Never
const selamla = (isim = "Misafir") => `Merhaba, ${isim}!`;
function kullaniciyaSor() {
let girilenIsim = prompt("Lütfen isminizi girin:");
if (girilenIsim === null || girilenIsim.trim() === "") {
console.log(selamla());
} else {
console.log(selamla(girilenIsim.trim()));
}
}
kullaniciyaSor();Editor is loading...
Leave a Comment